Redux ------------Crate
============Install=================== npm install @reduxjs/toolkit react-redux create folder stucture ===================Reducer.js========== import { createSlice } from "@reduxjs/toolkit" ; const studentInitSate={ students :[] , //array name : 'Sabir s' , isClose : false, contact : null //int } const studentSlice= createSlice ({ name : "student" , initialState :studentInitSate , reducers :{ addStudent :(state , action)=>{ state. students . push (action. payload ) ; } , removeStudent :(state , action)=>{ state. students . splice (action. payload , 1 ) ; } , popStudent :(state , action)=>{ state. students . pop () ; } , setName :(state , action)=>{ state. name =action. payload ; } , setContact :(state , action)=>{ state. contact =action. payload ; } , toggleButton :(state , action)=>{ ...