Created
October 8, 2018 21:38
-
-
Save zouhir/878acd92bb5048584ea17f750aa694ab to your computer and use it in GitHub Desktop.
This file contains hidden or 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
//unistore connector | |
@connect( | |
["level", "tiles"], | |
actions | |
) | |
export default class GameRoute extends Component { | |
componentDidMount() { | |
let level = this.props.matches.level | |
// actions has a mathod called startGame | |
this.props.startGame( {level} ) | |
} | |
render({level, tiles}){...} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment