A piece of react-native code:
enderScene(route, navigator) { let Component = route.component; return (<Component {...route.params} navigator={navigator}></Component> );}
this code returns a Component Object ,
But I don't understand this code ---> {...route.params}
Question:
- What is meant by '...' ?
- Can you tell me what is meant by " {...route.params}" ?