-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to use emoji-mart without React #305
Comments
You can use Then you can wrap it in a custom element using something like remount, which allows you to use I don't think it's likely that emoji-mart will switch to Vanilla JS, but since you have these options I think it's close enough to vanilla. :) |
Let me know if that helps; arguably we should add some documentation around this since it's probably not obvious how emoji-mart can be used in a non-React project. |
Reopened with the docs label |
Yes, it seems complex. Also one still has to use some react thing as it seems. |
I think this is too much responsibility for this project, when compatibility layers like |
Oh, thanks, I'll have a look at it. 😄 |
Looks interesting. Note that my definition of "vanilla JS" would also include "without nodejs". 😉 |
Thinking about it again https://github.com/nolanlawson/emoji-mart-outside-react still uses React (i.e. Preact), does not it? The shipped JS code still contains all the JS from preact, just now bundled in a way, so you can use it as a custom element? |
There is no way I can think of to turn |
fixed in #307 |
Okay, but certainly thanks for your support! |
I know, this is maybe a stupid question, but I'd better ask it now.
So: Can I somehow use this without React?
E.g. if there would be release bundles that just use "usual JS" (transpiled via babel or so) and allow me to use the whole lib here with "usual" JS calls or so, that would help me a lot. 😄
The text was updated successfully, but these errors were encountered: