From cc7cdf74b1dc9603b8523b3f87ae73da5d4ec342 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 2 Jul 2020 15:06:28 -0500 Subject: [PATCH] Add Create A Snowpack-Bundled React App as a react til --- README.md | 3 ++- react/create-a-snowpack-bundled-react-app.md | 24 ++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 react/create-a-snowpack-bundled-react-app.md diff --git a/README.md b/README.md index a6ea5e5..6289804 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/react/create-a-snowpack-bundled-react-app.md b/react/create-a-snowpack-bundled-react-app.md new file mode 100644 index 0000000..538dbce --- /dev/null +++ b/react/create-a-snowpack-bundled-react-app.md @@ -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/).