I recently wrote a couple articles on using Create React App alongside Phoenix to quickly get up and running building single page apps.
I'm using this approach of letting CRA manage and build a standalone front-end application within
/priv and then tweaking my Phoenix endpoint to serve assets from within that React app's
I also wrote a follow-up article that talks about using Apollo client with Absinthe which digs into how to pass configuration-specific data (staging/production endpoints, etc...) into your React app.
So far I'm a huge fan of this approach. There's no need to spend time tweaking configs to get your Phoenix application working with Webpack, or getting Brunch to work with React. Using CRA lets you start cooking with gas almost immediately, and Phoenix is flexible enough to gracefully work with it.
Is anyone else running this kind of setup?
Hopefully this helps a few folks looking to use React (and/or Apollo) with Phoenix.