sssrpbp v1.3.2
sssrpbp
Super Simple Static React Prototyping Boilerplate
A thin starter/boilerplate with all of the configs I like, to start coding React stuff quickly. Very few dependencies, just a solid dev workflow foundation, meant to be deconstructible when an app gets more complex.
Statically generated for super fast TTI and SEO. Sometimes, Gatsby is a tad bit overkill when you want something quick and simple.
Dependencies
- react & react-dom
- eslint
- prettier
- vite bundler
- react-snap for static prerendering
Templates
- default - React
- preact - same, but with Preact, and parcel instead of vite.
- typescript - Same as
Reactbut setup with Typescript.
Getting Started
- Run
npx sssrpbp --name=<name of your app> --template=<name of template>(or copy the files fromtemplate/defaultin this repo) yarnyarn start- To build -
yarn build - Start writing code of questionable integrity.
Fun Fact: This starter has a large dependency puppeteer included because of the react-snap dependency. If you are experiencing long install times, try running export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true before yarn install.
Note: This starter is just meant for prototyping, if you have actual production-facing business requirements to address, you should probably go for a different solution.