All Projects → patrikholcak → Hot Loader Demo

patrikholcak / Hot Loader Demo

React Hot Loader 3 minimal demo

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Hot Loader Demo

Iceberg
Front-End Boilerplate built with React + Babel + Webpack + SASS
Stars: ✭ 144 (+433.33%)
Mutual labels:  webpack2, starter-kit, boilerplate
Reactly Starter Kit
Deployable React + Webpack 2 starter kit
Stars: ✭ 122 (+351.85%)
Mutual labels:  webpack2, starter-kit, hot-reload
Redux Webpack Es6 Boilerplate
A starter project for modern React apps with Redux
Stars: ✭ 566 (+1996.3%)
Mutual labels:  webpack2, starter-kit, boilerplate
React Redux Styled Hot Universal
react boilerplate used best practices and focus on performance
Stars: ✭ 147 (+444.44%)
Mutual labels:  webpack2, starter-kit, boilerplate
Base
A starting point for Meteor apps.
Stars: ✭ 654 (+2322.22%)
Mutual labels:  starter-kit, boilerplate
React Redux Universal Hot Example
A starter boilerplate for a universal webapp using react, redux, express and feathers
Stars: ✭ 639 (+2266.67%)
Mutual labels:  starter-kit, boilerplate
M Fe Boilerplates
Lucid & Futuristic Production Boilerplates For Frontend(Web) Apps, React/RN/Vue, with TypeScript(Optional), Webpack 4/Parcel, MobX/Redux 💫 多技术栈前端项目模板
Stars: ✭ 877 (+3148.15%)
Mutual labels:  webpack2, boilerplate
Frame
💡 A user system API starter
Stars: ✭ 741 (+2644.44%)
Mutual labels:  starter-kit, boilerplate
Universal Redux Template
A clean, extensible react + redux boilerplate with universal/isomorphic rendering, testing and more
Stars: ✭ 471 (+1644.44%)
Mutual labels:  starter-kit, boilerplate
Akka Http Microservice
Example of http (micro)service in Scala & akka-http
Stars: ✭ 701 (+2496.3%)
Mutual labels:  starter-kit, boilerplate
Primitive
⛏️ ‎ A front-end design toolkit for developing web apps.
Stars: ✭ 783 (+2800%)
Mutual labels:  starter-kit, boilerplate
Nth Start Project
Startkit for HTML / CSS / JS pages layout.
Stars: ✭ 578 (+2040.74%)
Mutual labels:  starter-kit, hot-reload
Preact Redux Typescript Rollup Starter
Smallest "React-like" + Redux starter EVER - 13KB min&gzip
Stars: ✭ 24 (-11.11%)
Mutual labels:  starter-kit, boilerplate
Postgrest Starter Kit
Starter Kit and tooling for authoring REST API backends with PostgREST
Stars: ✭ 657 (+2333.33%)
Mutual labels:  starter-kit, boilerplate
Hartija Css Print Framework
Universal CSS for web printing
Stars: ✭ 509 (+1785.19%)
Mutual labels:  starter-kit, boilerplate
Laravel Boilerplate
Laravel Boilerplate / Starter Kit with Gentelella Admin Theme
Stars: ✭ 704 (+2507.41%)
Mutual labels:  starter-kit, boilerplate
Gatsby Starter Alchemy
A Gatsby starter with PostCSS powers ✨🔮
Stars: ✭ 23 (-14.81%)
Mutual labels:  starter-kit, boilerplate
Laravel6 Frontend Boilerplate
A Vue.js Frontend starter project kit template/boilerplate with Laravel 6 Backend API support.
Stars: ✭ 26 (-3.7%)
Mutual labels:  starter-kit, boilerplate
Thinkful Workshop React Redux Node Mongodb Webpack2
Stars: ✭ 12 (-55.56%)
Mutual labels:  webpack2, boilerplate
Preact Starter
Webpack3 boilerplate for building SPA / PWA / offline front-end apps with Preact
Stars: ✭ 384 (+1322.22%)
Mutual labels:  starter-kit, boilerplate

Hot Loader Demo

The goal of this repository is to provide a minimal, out-of-the-box working starter kit. I often found myself spending time deleting most of the features from other people’s starter kits and implementing them myself. Not necessarily because the implementation was wrong, but because I didn’t understand how it worked and wanted to gain a better understanding of it. This repository should serve as the barest minimum so you can add rather than delete.

NOTE:

  • No support provided.
  • If you don’t know how to use this, don’t.
  • Do not use in production — some libraries are still in beta or even alpha.

Libraries

  • React
  • React Redux 5
  • React Router 4
  • Redux-controlled router
  • React Hot Reload 3
  • Webpack 2

Babel

This project uses as little transpilation as possible as it fits my use case (Electron app). The only use of transpilation is there due to a bug in UglifyJS.

Babel presets

As pointed here, setting up hot reload with Babel presets requires some additional configuration. There are two ways of solving this problem:

1. Use Webpack 2 with native modules & tree shaking

Just opt-out of Babel module transpiling.

{
  "presets": ["es2015", { "modules": false }]
}

2. Use Babel module transpiling

You will need to re-require the app and the root reducer when a hot reload occurs. Edit ./src/main.js:

if (module.hot) {
  module.hot.accept('./reducer', () => {
    const NextReducer = require('./reducer').default;

    store.replaceReducer(NextReducer);
  });

  module.hot.accept('./app', () => {
    const NextApp = require('./app').default;

    renderApp(NextApp);
  });
}

CSS

I didn’t want to provide (or force) the use of a particular css preprocessor or workflow so only style-loader and css-loader are included. If you are looking for a good css compiler, check out PostCSS.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].