michelson / dante2

A complete rewrite of dante editor in draft-js
https://michelson.github.io/dante2/
Other
912 stars 121 forks source link

What am I doing wrong? #176

Closed xanderjakeq closed 5 years ago

xanderjakeq commented 5 years ago

Hi, I am following this page to learn how to use Dante2.

Based on what I see, I have to do: yarn add Dante2@next then

//import react stuff
import Dante from 'Dante2';

export default const Editor = (props) => {
  return (
    <Dante/>
  )
}

But I get this error: Element ref was specified as a string (editor) but no owner was set.

What am I doing wrong? thanks :)

michelson commented 5 years ago

Hi @xanderjakeq , which version of dante are you using? which version of react are you using ?

can you make a codepen to debug / send entire exception log ?

regards