GithubHelp home page GithubHelp logo

anbuleo / redux_practice Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 43 KB

React-Redux project setup and create store

JavaScript 89.54% HTML 6.31% CSS 4.15%
configurestore createslice css foreach react-bootstrap redux-toolkit usedispatch-hook useeffect-hook useselector-hook usestate-hook

redux_practice's Introduction

Redux_practice

step-1: create folder and open cmd terminal step-2: write a code to create vite project setup "npm create vite projectname" / select react and then select javascript step-3: give cd command to change the path or to open a correct project folder step-4: before install npm ensure the folder path is right then give command "npm install" step-5: open the correct folder to vs code editer by passing the command "code ." step-6: delete all the unwanted code for our project step-7: Install react-bootstrap for utilies the bootstrap source for that give the command in the terminal " npm install react-bootstrap bootstrap" and import react bootstrap min.css in main.jsx step-8: Install react router dom for router concepts so give command as "npm i react-router-dom" step-10: Install redux toolkit in the terminal by passing the command "npm install @reduxjs/toolkit react-redux" step-11: create component store.jsx and inside the component first import { configureStore } from "@reduxjs/toolkit"; and export default configureStore inside that add reducer "export default configureStore({ reducer:{ } })" step-12: In the main.jsx component import store and provider

import store from './redux/store.jsx'; import { Provider } from 'react-redux'; step-13: Add provider to root render element and for the provider we want to give the store like props "
" step-14: Now the redux store is ready

redux_practice's People

Contributors

anbuleo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.