- Clone this repo
https://github.com/EPShowcase/React_JS
- To run, go to project folder and run
$ npm install
or
$ yarn install
(if you are using yarn)
- Now start dev server by running -
$ npm start
or
$ yarn start
- If the browser does not automatically for any reason visit - http://localhost:3000/
For more create-react-app commands refer package.json
Most of the generic layout is built in /src/App.js
. The key thing to notice here is that we have included our one and only component to that file: namely <CounterComponent />
which has been imported from our /src/components
folder. I recommend you keep all of your components there unless you feel need to move them elsewhere.
The majority of the bootstrap code for the store is located in /src/store.js
. By default, the Redux Devtools Extension is enabled so feel free to open that in Google Chrome to see what our Redux store looks like.
Note: You will only benefit from having this enabled if you install the Google Chrome Extension which can be found at the above Redux Devtools hyperlink.
The logic for your reducers (aka Redux logic) will all be contained with /src/reducers/
. The logic for your sagas (aka Redux-Saga) will all be contained in /src/sagas
.
Official Facebook Documentation on React
Official Redux-Saga Documentation
Located here.
File an issue here.