Data to React App

1 Conventional Method: Client fetches data via Ajax after initial page load. 2 Less conventional method: Server serializes data as global Javascript variable in the inital HTML payload (see Instagram). 3 Server side rendering: Let the server render the output HTML with data and send it to the client. CHENG’S BLOG - Data to your React App Julien Phalip - DjangoCon US 2015

» Read more

Thunk

Thunk middleware for Redux. Redux Thunk middleware allows you to write action creators that return a function instead of an action. The thunk can be used to delay the dispatch of an action, or to dispatch only if a certain condition is met. The inner function receives the store methods dispatch and getState as parameters. Introduction to thunks in Redux GitHub.com/gaearon/redux-thunk Example: Reddit API

» Read more