49

In the react-native getting started example, there is this code:

var React = require('react-native');
var {
  AppRegistry,
  StyleSheet,
  Text,
  View,
} = React;

What is the var {...} = thing; saying?

royhowie
  • 10,805
  • 14
  • 48
  • 67
GreenAsJade
  • 14,055
  • 10
  • 60
  • 95
  • also possible duplicate of [What is this JavaScript syntax: `{Ci, CC} = `?](http://stackoverflow.com/q/9271570/1048572) – Bergi Oct 18 '15 at 20:34

0 Answers0