ericclemmons / react-resolver

Async rendering & data-fetching for universal React applications.
https://ericclemmons.github.io/react-resolver
Other
1.65k stars 52 forks source link

Initial Data from Django using React Resolver #99

Open josiahseaman opened 8 years ago

josiahseaman commented 8 years ago

I'm looking at using React front end combined with a Django database backend. I haven't found a packaged solution for my components to get their initial data from a Django endpoint. Would react-resolver be a good way to do this?

Thanks for all your hard work.

ericclemmons commented 8 years ago

That's pretty similar to how we're leveraging it.

You can put the @resolve all the way up on your handlers, or down to the individual component level.

Simply put, this project removes the need from your components to load data on componentDidMount and re-rendering when loaded and, as a result, allows for full-stack server-side rendering.