A brief overview of what I have learnt when using React.js on a modern web applciation.
The biggest question we had when writing our React application was, ‘what is the correct way to write compontents?’ The answer came from the fantastic Dan Abramov and his article on smart and dumb components
Universal JS can be painful
Due to the server side rendering aspect of Universal JS this can lead to a few headaches along the way, one of our biggest was when we wanted to use external libraries, for example using the React Highcharts package we had issues with getting this package to work in a server side application. Although this isn’t a reason not to build Universal JS apps its something to take on board, and be prepared for the odd hacky fix.
- Look at using flow on the node API.
- Explore immutable-js
- It seems everyone in the React community is talking about Redux
- Data fetching 2.0 Relay.js/GraphQL