Closed RaitoBezarius closed 8 years ago
I really would like to use this Component but I'm unable to use it because React (15.3.x) complains about "Uncaught TypeError: Cannot call a class as a function". Could you fix this or tell me how to build the source myself?
@TuningGuide and @RaitoBezarius - Hi, i'm pretty far removed from this work at this point (previous employer) but feel free to fork and submit a PR and I'll review / merge. See https://github.com/Kindling/react-tinymce-mention#development for development instructions.
It seems like that the
Mention
component which is exported does not inherit fromReact.Component
, and neither is a React old-style class.Is there any reason for this? Same goes for
SuggestionRenderer
andDefaultList
.Furthermore, in React 0.14, you don't need to wrap
<Provider>
child into a function.