lovasoa / react-contenteditable

React component for a div with editable contents
http://npmjs.com/package/react-contenteditable
Apache License 2.0
1.64k stars 218 forks source link

TypeError: r is not a function #221

Closed LeulAria closed 3 years ago

LeulAria commented 3 years ago
>  const { selected } = useEditor((state) => {
                                  ^  
      ...
   });
LeulAria commented 3 years ago

work if it's child inside of Editor

<Editor ...> 
     <Frame>...<Frame>
    <the component using useEditor with callback>
</Editor>