A custom made react-sandbox to only include the minimal set of features that is relevent (at least to me) to setup a small-medium size project
Preact
Instead of using the bulkier react module set. Preact is a good alternative in delivering efficient react apps with a small footprint. While you can create large apps in Preact. This is (personally) ideal to launch small to medium sized react project. This fork is fully compatible with most of the react third party modules available in npm
Official Website: Preact
Redux
Pretty standard if you want to create React Apps that needs to handle data across components. Basically a predictable state contaner its commonly bundled with any react boilerplate like peanut butter to jelly in a sandwich, or dinuguan (pig's blood) to puto (rice cake).
Official Website: Redux
Thunk
An async redux middleware.
I was originally going for redux_saga but given that this sandbox is for small-medium projects, I decided to go with the simpler async callers.
Official Website: Redux Thunk
PWA
Loads the essentials resources in your browser to increase the performance of the app.
Semantic UI
This sandbox already includes the semantic-ui style suite as well as option to personalize it to your liking.
Official Website: Semantic UI Framework, Semantic UI React
Styled Components
Component styling. Better than using the css-loaders
or style-loders
.
Official Website: Styled Components
Quick Scaffolding
Because react-router v4
takes an amount of work to setup new routes. This uses plop
in generating the necessary route and files needed to get started in writing new segments of your app
Other Features ...
- PrettierJS - the opinionated JS formatter to make sure your codebase is standard through out the dev cycle.
- ES Lint (Standard) - this boilerplate is using the Standard style of coding, but running under ESLint.
- Clone the repo
git clone git@github.com:abarcenas29/preact-sandbox.git
- Execute these set of commands:
yarn
yarn run postinstall
-- configures the semantic theme files in thesrc
folderyarn run eject
-- remove the git folder for creating a new repo
- Run
yarn run start:dev
oryarn run start:prod
for production build - visit
http://locahost:3333
for dev.http://localhost:3100
for prod
Generators (using plop
) is used to generate the necessary files to create a new component, or setup a new route.
Script: yarn run generate
- Isomorphic JS (Not working properly with
preact
) - React Hot Loader (Apparently its not working properly in
preact
)
This sandbox is merely a way for me to understand on react-boilerplates work. Also give me the capability to make custom-tailored toolset, or edit exisiting toolset in future projects. Anyone is free to use this if they understand how this sandbox work.