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
  • 11,075
  • 14
  • 50
  • 67
GreenAsJade
  • 14,459
  • 11
  • 63
  • 98
  • 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