--- order: 6 title: zh-CN: 建议渲染父节点 en-US: SuggestionContainer --- ## zh-CN 指定提示渲染的父节点。 ## en-US To set the container of the suggestion. ````jsx import { Mention, Popover, Button } from 'antd'; const { toString, toEditorState } = Mention; function onChange(editorState) { console.log(toString(editorState)); } function onSelect(suggestion) { console.log('onSelect', suggestion); } class PopoverContainer extends React.Component { getSuggestionContainer = () => { return this.popover.getPopupDomNode(); } render() { const mention = ( ); return ( this.popover = popover}> ); } } ReactDOM.render(, mountNode); ````