Set up a React App and build it as a Web Component
This setup is is based on react-scripts from create-react-app
A walkthrough of the principles used in this setup, can be read in this article
Features include
✔️ Create, build and ship Web Components easier than ever before
✔️ Configure your project with full Webpack control
✔️ Bundling multiple components together for optimized bundlesize
✔️ Data-sharing and interactions between components
✔️ Plugins for varies purposes: font-loading, external resources, styled-components, and more ...
Get started
Start by downloading the cli:
npm i -g direflow-cli
Create a new Direflow Component
direflow create
This will bootstrap a new Direflow Component for you.
Now use the following commands:
cd <project-folder>
yarn install
yarn start
Your Direflow Component will start running on localhost:3000
and your browser opens a new window