Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitfdb9514

Browse files
committed
doc: update the directory
1 parent4842eeb commitfdb9514

File tree

7 files changed

+11
-23
lines changed

7 files changed

+11
-23
lines changed

‎src/containers/ThemeSwitch.js‎

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import{connect}from'react-redux'
2-
import{themeBlue,themeRed,themeGreenAsync,themeTwice}from'../component/redux'
2+
import{
3+
themeBlue,
4+
themeRed,
5+
themeGreenAsync,
6+
themeTwice
7+
}from'../redux/redux'
38
importThemeSwitchfrom'../component/ThemeSwitch'
49

510
constmapStateToProps=state=>{
@@ -8,16 +13,6 @@ const mapStateToProps = state => {
813
}
914
}
1015

11-
// const mapDispatchToProps = dispatch => {
12-
// return {
13-
// onSwitchColor: color => {
14-
// dispatch({
15-
// type: 'CHANGE_COLOR',
16-
// themeColor: color
17-
// })
18-
// }
19-
// }
20-
// }
2116
constmapDispatchToProps={
2217
themeBlue,
2318
themeRed,

‎src/index.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import React, {
22
Component
33
}from'react'
44
importReactDOMfrom'react-dom'
5-
importthunkfrom'./component/redux-thunk'
6-
importarrayThunkfrom'./component/redux-array'
7-
import{createStore,applyMiddleWare}from'./component/redux'
8-
import{Provider}from'./component/React-redux'
5+
import{createStore,applyMiddleWare}from'./redux/redux'
6+
import{Provider}from'./redux/react-redux/react-redux'
7+
importthunkfrom'./redux/middleware/redux-thunk'
8+
importarrayThunkfrom'./redux/middleware/redux-array'
99
importHeaderfrom'./containers/Header'
1010
importContentfrom'./containers/Content'
1111

‎src/logo.svg‎

Lines changed: 0 additions & 7 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

‎src/component/React-redux.js‎renamed to ‎src/redux/react-redux/react-redux.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
importReact,{Component}from'react'
22
importPropTypesfrom'prop-types'
3-
import{bindActionCreators}from'./redux'
3+
import{bindActionCreators}from'../redux'
44

55
// 高阶组件HOC
66
exportconstconnect=(mapStateToProps=state=>state,mapDispatchToProps={})=>WrappedComponent=>{
File renamed without changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp