- A simple React scaffold, including setup and run instructions. This project is based on the files generated by the React CLI's create-react-app command.
- Use as a reference for new or existing applications.
- Add a copy to your repos with Use this template button.
Click the button below. That will fork it to your own repos.
Then follow the Installation and Usage docs to install and run the app so you can view it locally in your browser.
Follow the Deploy doc to deploy to GitHub Pages.
This project was created using:
$ npx create-react-app my-app
$ cd my-appTip - you can add TS support by adding --template typescript.
The original app in this project is mostly unchanged. I've added components to demonstrate how they are used. I've added detailed docs and a GH Actions deploy flow to get the site hosted on GH Pages.
- A React app typically runs as a Node.js server, especially locally. This uses a compile step and runs from memory - there is no
builddirectory used. - The app can be compiled to a build directory for running as a static site - this means you can deploy to GitHub Pages or Netlify.
- React uses
.jsor.jsxfiles with JSX syntax (HTML inside JavaScript). These cannot be run directly. But these are transpiled (or compiled) to plain JavaScript by thereact-script buildcommand. Babel is used for that transpiling, but it is not necessary to use specify it directory as it is covered through the direct dependencies.