File tree Expand file tree Collapse file tree 7 files changed +17
-20
lines changed Expand file tree Collapse file tree 7 files changed +17
-20
lines changed Original file line number Diff line number Diff line change 1
1
import 'babel-core/polyfill' ;
2
-
3
2
import React from 'react' ;
3
+ import { render } from 'react-dom' ;
4
4
import { Provider } from 'react-redux' ;
5
5
import App from './containers/App' ;
6
6
import configureStore from './store/configureStore' ;
7
7
import 'todomvc-app-css/index.css' ;
8
8
9
9
const store = configureStore ( ) ;
10
10
11
- React . render (
11
+ render (
12
12
< Provider store = { store } >
13
- { ( ) => < App /> }
13
+ < App />
14
14
</ Provider > ,
15
15
document . getElementById ( 'root' )
16
16
) ;
Original file line number Diff line number Diff line change 18
18
"homepage" : " http://rackt.github.io/redux" ,
19
19
"dependencies" : {
20
20
"classnames" : " ^2.1.2" ,
21
- "react" : " ^0.13.3" ,
22
- "react-redux" : " ^2.1.2" ,
21
+ "react" : " ^0.14.0" ,
22
+ "react-dom" : " ^0.14.0" ,
23
+ "react-redux" : " ^4.0.0" ,
23
24
"redux" : " ^3.0.0"
24
25
},
25
26
"devDependencies" : {
32
33
"mocha" : " ^2.2.5" ,
33
34
"node-libs-browser" : " ^0.5.2" ,
34
35
"raw-loader" : " ^0.5.1" ,
36
+ "react-addons-test-utils" : " ^0.14.0" ,
35
37
"react-transform-hmr" : " ^1.0.0" ,
36
38
"style-loader" : " ^0.12.3" ,
37
39
"todomvc-app-css" : " ^2.0.1" ,
Original file line number Diff line number Diff line change 1
1
import expect from 'expect' ;
2
- import React from 'react/addons' ;
2
+ import React from 'react' ;
3
+ import TestUtils from 'react-addons-test-utils' ;
3
4
import Footer from '../../components/Footer' ;
4
5
import { SHOW_ALL , SHOW_ACTIVE } from '../../constants/TodoFilters' ;
5
6
6
- const { TestUtils } = React . addons ;
7
-
8
7
function setup ( propOverrides ) {
9
8
const props = Object . assign ( {
10
9
completedCount : 0 ,
Original file line number Diff line number Diff line change 1
1
import expect from 'expect' ;
2
- import React from 'react/addons' ;
2
+ import React from 'react' ;
3
+ import TestUtils from 'react-addons-test-utils' ;
3
4
import Header from '../../components/Header' ;
4
5
import TodoTextInput from '../../components/TodoTextInput' ;
5
6
6
- const { TestUtils } = React . addons ;
7
-
8
7
function setup ( ) {
9
8
const props = {
10
9
addTodo : expect . createSpy ( )
Original file line number Diff line number Diff line change 1
1
import expect from 'expect' ;
2
- import React from 'react/addons' ;
2
+ import React from 'react' ;
3
+ import TestUtils from 'react-addons-test-utils' ;
3
4
import MainSection from '../../components/MainSection' ;
4
5
import TodoItem from '../../components/TodoItem' ;
5
6
import Footer from '../../components/Footer' ;
6
7
import { SHOW_ALL , SHOW_COMPLETED } from '../../constants/TodoFilters' ;
7
8
8
- const { TestUtils } = React . addons ;
9
-
10
9
function setup ( propOverrides ) {
11
10
const props = Object . assign ( {
12
11
todos : [ {
Original file line number Diff line number Diff line change 1
1
import expect from 'expect' ;
2
- import React from 'react/addons' ;
2
+ import React from 'react' ;
3
+ import TestUtils from 'react-addons-test-utils' ;
3
4
import TodoItem from '../../components/TodoItem' ;
4
5
import TodoTextInput from '../../components/TodoTextInput' ;
5
6
6
- const { TestUtils } = React . addons ;
7
-
8
7
function setup ( editing = false ) {
9
8
const props = {
10
9
todo : {
Original file line number Diff line number Diff line change 1
1
import expect from 'expect' ;
2
- import React from 'react/addons' ;
2
+ import React from 'react' ;
3
+ import TestUtils from 'react-addons-test-utils' ;
3
4
import TodoTextInput from '../../components/TodoTextInput' ;
4
5
5
- const { TestUtils } = React . addons ;
6
-
7
6
function setup ( propOverrides ) {
8
7
const props = Object . assign ( {
9
8
onSave : expect . createSpy ( ) ,
You can’t perform that action at this time.
0 commit comments