# 基本
- order: 0
最简单的用法。
---
````jsx
import { TreeSelect } from 'antd';
const TreeNode = TreeSelect.TreeNode;
const Demo = React.createClass({
getInitialState() {
return {
value: 'leaf1',
};
},
onChange(value) {
this.setState({ value });
},
render() {
return (
);
},
});
ReactDOM.render(
, mountNode);
````