REDUX Öffentlich

REDUX

i Android
Kurs von i Android, aktualisiert more than 1 year ago Beitragende

Beschreibung

Redux Notes

Modulinformationen

Keine Merkmale angegeben
Move into your React development environment and install Redux: cd webpack-4-quickstart/ npm i redux --save-dev Create a directory for the store: mkdir -p src/js/store Create a new file named index.jsin src/js/storeand finally initialize the store: // src/js/store/index.js   import { createStore } from "redux"; import rootReducer from "../reducers/index";   const store = createStore(rootReducer);   export default store; createStore is the function for creating the Redux store. createStore takes a reducer as the first argument, rootReducer in our case.
Weniger sehen
Zusammenfassung anzeigen Zusammenfassung ausblenden