DEV Community

Discussion on: Elixir Phoenix with Typescript and React – December 2019 Edition

Collapse
 
terenceponce profile image
Terence Ponce

Nice guide! How would you send data to the frontend in this scenario? Do you create an API that React will consume or are you going to still use Phoenix's offerings and just sprinkle React wherever needed?

Collapse
 
aisrael profile image
Alistair A. Israel

Our tech stack of choice these days is GraphQL: absinthe-graphql on the Phoenix side, react-apollo on the browser-side, though if you're stuck with REST then mix phx.gen.json gets you most of the way there.

You just gave me great idea for a follow up article, though. Thanks!