---
order: 3
title:
zh-CN: 受控模式
en-US: Controlled
---
## zh-CN
受控模式.
## en-US
Controlled mode.
````jsx
import { Mention } from 'antd';
const { toEditorState } = Mention;
class App extends React.Component {
state = {
value: toEditorState('@afc163'),
}
handleChange = (editorState) => {
this.setState({
value: editorState,
});
}
render() {
return (
);
}
}
ReactDOM.render(, mountNode);
````