Browse Source

docs: remove dead code in demo

pull/2921/head
Benjy Cui 8 years ago
parent
commit
34974923b8
  1. 4
      components/mention/demo/custom-tag.md

4
components/mention/demo/custom-tag.md

@ -29,7 +29,6 @@ const CustomNavMention = React.createClass({
getInitialState() {
return {
suggestions: [],
loading: false,
};
},
onSearchChange(value) {
@ -44,11 +43,10 @@ const CustomNavMention = React.createClass({
this.setState({ suggestions });
},
render() {
const { suggestions, loading } = this.state;
const { suggestions } = this.state;
return (
<Mention
style={{ width: 500, height: 100 }}
loading={loading}
suggestions={suggestions}
onSearchChange={this.onSearchChange}
/>

Loading…
Cancel
Save