was able to get your react complex component example working, when i try to get your non react example i (the MyWidget one on the readme) i get errors.
Warning: MyWidget(...): Norendermethod found on the returned component instance: you may have forgotten to definerenderin your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.
Warning: Don't set the props property of the React element. Instead, specify the correct value when initially creating the element.
using react, in plnkr.co, without jsx support.
was able to get your react complex component example working, when i try to get your non react example i (the MyWidget one on the readme) i get errors.
Warning: MyWidget(...): No
rendermethod found on the returned component instance: you may have forgotten to define
renderin your component or you may have accidentally tried to render an element whose type is a function that isn't a React component.
Warning: Don't set the props property of the React element. Instead, specify the correct value when initially creating the element.
code
when i change MyWidget to be
things work.
i'm not sure if this is a bug, or the documentation needs to be updated, or if i am doing something wrong.