In this repository I'll add multiple react and redux examples from scratch.
-
Just create workspace and run bellow command:
npx create-react-app hello-world
-
hello-world application will be created.
-
Now open this hello-world folder in Visual Studio.
-
Inside folder run:
npm start
- we can add snippets in IDE, (For time being you can skip this)
rsf
snippet for stateless componentrcc
snippet for stateful componentcon
snippet for constructor in stateful componentsst
snippet for state with in stateful componentssf
snippet for state with function stateful component
- Hello-World (will discuss basics of create/run react app commands and folder structure).
- component-example (Will discuss basics of component)
- Event Handling (will discuss about event handling)
- Conditional-Rendering
- Form Example (Will discuss how to submit basic form data)
- Http Requests example [POST, GET]
- Az-Redux (will discuss core Redux lib and node examples)
-
React-Redux-example ( will discuss how to use redux in react)
-
Need to dependencises
Redux
&React-Redux
. -
install:
npm install redux react-redux