diff --git a/components/tree/demo/basic-controlled.md b/components/tree/demo/basic-controlled.md index f462b6ace6..1d423f1bbb 100644 --- a/components/tree/demo/basic-controlled.md +++ b/components/tree/demo/basic-controlled.md @@ -9,7 +9,7 @@ ````jsx import { Tree } from 'antd'; const TreeNode = Tree.TreeNode; -import React, { PropTypes } from 'react'; +const PropTypes = React.PropTypes; const x = 3; const y = 2; diff --git a/components/tree/demo/basic.md b/components/tree/demo/basic.md index 43c05ef630..cafe791f5d 100644 --- a/components/tree/demo/basic.md +++ b/components/tree/demo/basic.md @@ -9,7 +9,7 @@ ````jsx import { Tree } from 'antd'; const TreeNode = Tree.TreeNode; -import React, { PropTypes } from 'react'; +const PropTypes = React.PropTypes; const Demo = React.createClass({ propTypes: { diff --git a/components/tree/demo/contextmenu.md b/components/tree/demo/contextmenu.md index 86f74407ad..25182c80ed 100644 --- a/components/tree/demo/contextmenu.md +++ b/components/tree/demo/contextmenu.md @@ -10,7 +10,6 @@ import { Tree, Tooltip } from 'antd'; import assign from 'object-assign'; const TreeNode = Tree.TreeNode; -import React from 'react'; function contains(root, n) { let node = n; diff --git a/components/tree/demo/draggable.md b/components/tree/demo/draggable.md index e7fd3b29bc..1703ac54d4 100644 --- a/components/tree/demo/draggable.md +++ b/components/tree/demo/draggable.md @@ -9,7 +9,6 @@ ````jsx import { Tree } from 'antd'; const TreeNode = Tree.TreeNode; -import React from 'react'; const x = 3; const y = 2; diff --git a/components/tree/demo/dynamic.md b/components/tree/demo/dynamic.md index 2fa3fe2092..d1b9eefe0f 100644 --- a/components/tree/demo/dynamic.md +++ b/components/tree/demo/dynamic.md @@ -9,7 +9,6 @@ ````jsx import { Tree } from 'antd'; const TreeNode = Tree.TreeNode; -import React from 'react'; function generateTreeNodes(treeNode) { const arr = [];