react -redux 存取数据简单使用

1.首先,在自定义的组件中新建store文件夹,并在store下新建reducer.js文件,编写代码:react import {fromJS} from 'immutable'; const defaultState = fromJS({ topicList:[{ "id":1, "text":"社会热点", "url":"https:
相关文章
相关标签/搜索