From 06b2d9c4fd5b9c1e0171d4ee2f202049a3adbef4 Mon Sep 17 00:00:00 2001 From: Satyajit Sahoo Date: Fri, 29 Apr 2016 11:48:39 -0700 Subject: [PATCH] Import from React in JavaScriptEnvironment Summary: cc sebmarkbage Closes https://github.com/facebook/react-native/pull/7300 Differential Revision: D3241837 Pulled By: sebmarkbage fb-gh-sync-id: 48491192ba215d402ebbe4c77124dc75c6f0e0b8 fbshipit-source-id: 48491192ba215d402ebbe4c77124dc75c6f0e0b8 --- docs/JavaScriptEnvironment.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/JavaScriptEnvironment.md b/docs/JavaScriptEnvironment.md index 5670e79bd..b04c622e8 100644 --- a/docs/JavaScriptEnvironment.md +++ b/docs/JavaScriptEnvironment.md @@ -37,7 +37,7 @@ ES6 * [Constants](https://babeljs.io/docs/learn-es2015/#let-const): `const answer = 42;` * [Destructuring](http://babeljs.io/docs/learn-es2015/#destructuring): `var {isActive, style} = this.props;` * [for...of](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of): `for (var num of [1, 2, 3]) {}` -* [Modules](http://babeljs.io/docs/learn-es2015/#modules): `import { Component } from 'react-native';` +* [Modules](http://babeljs.io/docs/learn-es2015/#modules): `import React, { Component } from 'react';` * [Computed Properties](http://babeljs.io/docs/learn-es2015/#enhanced-object-literals): `var key = 'abc'; var obj = {[key]: 10};` * Object Consise Method: `var obj = { method() { return 10; } };` * [Object Short Notation](http://babeljs.io/docs/learn-es2015/#enhanced-object-literals): `var name = 'vjeux'; var obj = { name };`