/create-react-web-component

Set up a React App wrapped in a Web Component

Primary LanguageTypeScriptMIT LicenseMIT

Create React Web Component Tweet

NPM Version Github License Build Status Code Coverage

Official webpage

Set up a React App wrapped in a Web Component

This setup is is based on react-scripts from create-react-app
A thorough description of the principles used in this setup, can be read in this article

Getting Started

Install

Get started by running the command

npx create-react-web-component

Or install the package globally

  • yarn

    yarn global add create-react-web-component
  • npm

    npm i -g create-react-web-component

This will bootstrap a new project for you.
Now use the following commands:

cd <project-folder>
yarn install
yarn start

Your project will start running on localhost:3000 and your browser opens a new window

Contributing

Issues

In the case of a bug report, bugfix or a suggestions, please feel very free to open an issue.

Pull request

Pull requests are always welcome, and I'll do my best to do reviews as fast as I can.

License

This project is licensed under the MIT License

Get Help

Read more about using Web Components with React on the official React Docs