What is React.js Boilerplate?
Quick setup for new performance orientated, offline–first React.js applications featuring Redux, hot–reloading, PostCSS, react-router, ServiceWorker, AppCache, FontFaceObserver and Mocha.
React.js Boilerplate is an open source tool with GitHub stars and GitHub forks. Here’s a link to React.js Boilerplate's open source repository on GitHub
Who uses React.js Boilerplate?
6 companies reportedly use React.js Boilerplate in their tech stacks, including Digital Services, On-demand apps, and HolidayCheck.
382 developers on StackShare have stated that they use React.js Boilerplate.
React.js Boilerplate Integrations
React, Redux, Mocha, React Router, and PostCSS are some of the popular tools that integrate with React.js Boilerplate. Here's a list of all 6 tools that integrate with React.js Boilerplate.
Pros of React.js Boilerplate
Amazing developer experience
Easy offline first applications
React.js Boilerplate's Features
- 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!
- PostCSS is like Sass, but modular and capable of much more. PostCSS is, in essence, just a wrapper for plugins which exposes an easy to use, but very powerful API. While it is possible to replicate Sass features with PostCSS, PostCSS has an ecosystem of amazing plugins with functionalities Sass cannot even dream about having. See this talk for a short introduction to PostCSS.
- Unit tests should be an important part of every web application developers toolchain. Mocha checks your application is working exactly how it should without you lifting a single finger. Congratulations, you just won a First Class ticket to world domination, fasten your seat belt please!
- react-router is used for routing in this boilerplate. Using the new, and currently unreleased, 1.0 version, react-router makes routing really easy to do and takes care of a lot of the work. Since the version is not officially out yet, the documentation is not fully finished, but by far finished enough to work for most needs.
- ServiceWorker and AppCache make it possible to use your application offline. As soon as the website has been opened once, it is cached and available without a network connection. See this talk for an explanation of the ServiceWorker used in this boilerplate. manifest.json is specifically for Chrome on Android. Users can add the website to the homescreen and use it like a native app!
React.js Boilerplate Alternatives & Comparisons
What are some alternatives to React.js Boilerplate?
See all alternatives
Next.js is a minimalistic framework for server-rendered React applications.
Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
It is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API.