I\'m trying to set up some nested routes to add a common layout. Check the code out:
If you do not want Layout to run at loaded. Use this method:
Layout
Whenever history changes, componentWillReceiveProps in the ChatList will run.