leecade / react-native-practice

8 stars 0 forks source link

Use `context` instead of passing props to deep components #9

Open leecade opened 8 years ago

leecade commented 8 years ago

https://facebook.github.io/react/blog/2014/03/28/the-road-to-1.0.html#context

It's looks like a global variable, every child components may read it.