Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 1.11 KB

readme.md

File metadata and controls

41 lines (28 loc) · 1.11 KB

React boilerplate

This repo has a boilerplate example to start a react app without using create-react-app. The stack is:

Getting started

Install the basic dependencies

npm install

Running the project

Snowpack builds the app as an ECMAScript Module, which is loaded in index.html as type=module:

<script type="module" src="/dist/index.js"></script>

So to see the app working, you should run it in an HTTP server, which is already provided by Snowpack. Just run

snowpack dev

and go to http://localhost:8080 and check it out! Everytime you change the code, the HMR will keep the browser up-to-date!

Building the app

To build the app for production just run

snowpack build