创建reducer文件

This commit is contained in:
waliang.wang 2017-07-10 11:50:56 +08:00
parent 548a6327b8
commit 77ce038cec
11 changed files with 8 additions and 37 deletions

View File

@ -1,5 +1,4 @@
import React, { Component } from 'react'
import './store.js'
import Routes from './routes'
class App extends Component {

View File

@ -1,4 +1,4 @@
import LoginRedux from './containers/Login/Login_redux.js'
import LoginRedux from './reducer/Login/Login_redux.js'
export default {
LoginRedux

View File

@ -1,4 +1,4 @@
import '../../styles/Header/Header.scss'
import './Header.scss'
import React, { Component } from 'react'
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'

View File

@ -1,4 +1,4 @@
@import '../common.scss';
@import '../../styles/common.scss';
/* .header-box.css */
.header-box {

View File

@ -1,5 +1,5 @@
// import { React, Component } from '../../base.js'
import '../../styles/Home/Home.scss'
import './Home.scss'
import React, { Component } from 'react'
import { Button, Input, Icon, Checkbox } from 'antd'
import Header from '../../components/Header/Header.js'

View File

@ -1,5 +1,4 @@
@import '../common.scss';
@import '../../styles/common.scss';
/* .home-main.css */
// .home-main {
// display: -webkit-box;

View File

@ -1,5 +1,5 @@
// import { React, Component } from '../../base.js'
import '../../styles/Login/Login.scss'
import './Login.scss'
import React, { Component } from 'react'
import { Button, Input, Icon, Checkbox } from 'antd'
import { BrowserRouter as Router, Route, Link } from 'react-router-dom'

View File

@ -1,4 +1,4 @@
@import '../common.scss';
@import '../../styles/common.scss';
/* .login-main.css */
.login-main {

View File

@ -1,28 +0,0 @@
import React, { Component } from 'react'
import { createStore, combineReducers } from 'redux'
import Login from './containers/Login/Login_redux.js'
import { Provider, connect } from 'react-redux'
// const store = createStore(combineReducers({Login}))
// const increaseAction = { type: 'increase' }
// function mapStateToProps(state) {
// return {
// value: 4444,
// per: 4444444,
// }
// }
// function mapDispatchToProps(dispatch) {
// return {
// onIncreaseClick: () => dispatch()
// }
// }
// const App = connect(
// mapStateToProps,
// mapDispatchToProps
// )(Login)
// export { store }

View File

@ -0,0 +1 @@
$commonUrl: @import '../../styles/common.scss';