diff --git a/examples/hovering-menu/index.js b/examples/hovering-menu/index.js index aba12f396..aeca6ec57 100644 --- a/examples/hovering-menu/index.js +++ b/examples/hovering-menu/index.js @@ -172,14 +172,16 @@ class HoveringMenu extends React.Component { * Render the editor. * * @param {Object} props - * @param {Editor} editor + * @param {Function} next * @return {Element} */ - renderEditor = (props, editor) => { + renderEditor = (props, next) => { + const { editor } = props + const children = next() return ( - {props.children} + {children} (this.menu = menu)} editor={editor} /> )