文件名称:亚马逊练习2
文件大小:1.04MB
文件格式:ZIP
更新时间:2024-03-16 04:16:18
JavaScript
亚马逊练习2 #设置redux 1. npm i redux react-redux 2. create store.js in src and set up it like : import data from './data' import {createStore} from 'redux' const initialState = {}; const reducer = (state, action) => { return { products: data.products } } const store = createStore(reducer, initialState) export default store; 3. in index.js import {Provider} from
【文件预览】:
amazon-practice-2nd-master
----frontend()
--------package.json(986B)
--------package-lock.json(677KB)
--------.env(24B)
--------src()
--------.gitignore(310B)
--------public()
--------README.md(3KB)
----package.json(640B)
----.prettierrc(40B)
----package-lock.json(64KB)
----.DS_Store(6KB)
----.eslintrc.js(389B)
----.gitignore(12B)
----README.md(2KB)
----template()
--------images()
--------index.html(11KB)
--------.DS_Store(6KB)
--------style.css(1KB)
----backend()
--------server.js(646B)
--------routers()
--------data.js(2KB)