1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 23:28:02 +00:00

Add Create A Snowpack-Bundled React App as a react til

This commit is contained in:
jbranchaud
2020-07-02 15:06:28 -05:00
parent 7db93d86c0
commit cc7cdf74b1
2 changed files with 26 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
# Create A Snowpack-Bundled React App
> [Snowpack](https://www.snowpack.dev/) is a modern, lightweight toolchain for
> web application development.
You can get started using snowpack with this `npx` command.
```bash
npx create-snowpack-app my-app
```
This command uses a base template that is pre-configured to use the snowpack
defaults.
You can take this a step further by using a specialized template for React
apps.
```bash
npx create-snowpack-app react-client --template @snowpack/app-template-react
```
An advantage this has over
[create-react-app](https://github.com/facebook/create-react-app) is there is no
ejecting needed to do something like pull in [PostCSS](https://postcss.org/).