I often find myself making a barebones React instance to play with ideas, new libraries, or to attempt to reproduce odd isssues.
create-react-app
is wonderful but its vast hidden mechanisms means it's often hard to tinker with easily.
This leaves all the configuration extremely minimal and lets you persue your goals without having to google which exact babel
packages you need with webpack
again.
Setup
yarn
- install dependencies
Develeopment
yarn start
- run hot reloading webpack-dev-server
Production
yarn build
- create production bundle
- React/React-DOM
- Webpack 4 w/ webpack-dev-server
- Babel 7 w/ JSX preset
- A single "hello" component.
In cooking there's an idea that for nearly all things, you really only need a chef's knife. Knife in French is "couteau". Now you know.