mirror of
https://github.com/jbranchaud/til
synced 2026-01-02 22:58:01 +00:00
Add Create A Snowpack-Bundled React App as a react til
This commit is contained in:
@@ -9,7 +9,7 @@ and pairing with smart people at Hashrocket.
|
||||
|
||||
For a steady stream of TILs, [sign up for my newsletter](https://tinyletter.com/jbranchaud).
|
||||
|
||||
_931 TILs and counting..._
|
||||
_932 TILs and counting..._
|
||||
|
||||
---
|
||||
|
||||
@@ -626,6 +626,7 @@ _931 TILs and counting..._
|
||||
- [Building A React App In The Browser](react/building-a-react-app-in-the-browser.md)
|
||||
- [Check The Type Of A Child Component](react/check-the-type-of-a-child-component.md)
|
||||
- [Conditionally Including Event Handler Functions](react/conditionally-including-event-handler-functions.md)
|
||||
- [Create A Snowpack-Bundled React App](react/create-a-snowpack-bundled-react-app.md)
|
||||
- [Create Dynamically Named Custom React Components](react/create-dynamically-named-custom-react-components.md)
|
||||
- [create-react-app Comes With Lodash](react/create-react-app-comes-with-lodash.md)
|
||||
- [create-react-app Has A Default Test Setup File](react/create-react-app-has-a-default-test-setup-file.md)
|
||||
|
||||
24
react/create-a-snowpack-bundled-react-app.md
Normal file
24
react/create-a-snowpack-bundled-react-app.md
Normal 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/).
|
||||
Reference in New Issue
Block a user