This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
import { render } from 'react-native-testing-library'; | |
import { Provider } from 'react-redux'; | |
import { createStore } from 'redux'; | |
import { MyContainerComponent, MyPresentationalComponent } from '...'; | |
// Create a real redux store, with your reducers and middleware, and a useful initial | |
// state tree... | |
const store = createStore(...); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
render() { | |
return <MyPureComponent array={[1,2,3]} object={{a:true}} function={() => {}} />; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getAllFooNames1 = createSelector( | |
stateTree => stateTree, | |
stateTree => { | |
return stateTree.allFoos.map(foo => foo.name); | |
}); | |
const getAllFooNames2 = createSelector( | |
stateTree => stateTree.allFoos, | |
allFoos => { | |
return allFoos.map(foo => foo.name); |