React.js Boilerplate vs Relay: What are the differences?
What is React.js Boilerplate? 🔥 Quick setup for performance orientated, offline-first React.js apps. Quick setup for new performance orientated, offline–first React.js applications featuring Redux, hot–reloading, PostCSS, react-router, ServiceWorker, AppCache, FontFaceObserver and Mocha.
Some of the features offered by React.js Boilerplate are:
- Using react-transform-hmr, your changes in the CSS and JS get reflected in the app instantly without refreshing the page. That means that the current application state persists even when you change something in the underlying code! For a very good explanation and demo, watch Dan Abramov himself talking about it at react-europe.
- Redux is a much better implementation of a flux–like, unidirectional data flow. Redux makes actions composable, reduces the boilerplate code and makes hot–reloading possible in the first place. For a good overview of redux, check out the talk linked above or the official documentation!
On the other hand, Relay provides the following key features:
- Build data driven apps
- Declarative style
- Mutate data on the client and server
React.js Boilerplate and Relay are both open source tools. It seems that React.js Boilerplate with 22.9K GitHub stars and 4.59K forks on GitHub has more adoption than Relay with 13.1K GitHub stars and 1.29K GitHub forks.
What is React.js Boilerplate?
What is Relay?
Need advice about which tool to choose?Ask the StackShare community!
Sign up to add, upvote and see more prosMake informed product decisions
What are the cons of using React.js Boilerplate?
What are the cons of using Relay?
Sign up to get full access to all the companiesMake informed product decisions
Sign up to get full access to all the tool integrationsMake informed product decisions
Before relay-modern, we wrote our own subscriptions-capable GraphQL client + cache called Cashay. We switched to relay-modern when its functionality and community surpassed our own
Relay is used to minimize client-side logic on https://cirrus-ci.com/