nolanlawson / emoji-mart-outside-react

Demo of how to use emoji-mart outside of React
https://nolanlawson.github.io/emoji-mart-outside-react/
8 stars 5 forks source link

Can we drop preact-compat? #9

Closed rugk closed 5 years ago

rugk commented 5 years ago

AFAIK these lines: https://github.com/nolanlawson/emoji-mart-outside-react/blob/537103519b1c957b077583c826a4d071dd0a67ff/webpack.config.js#L4-L5

...require the react compatibility module from preact to be included.

Can we maybe somehow drop this, to decrease the size?

Possibly by using a custom adapter of remount.

nolanlawson commented 5 years ago

preact is the smallest React-like that I'm aware of. I don't think you could get the size down any further without implementing your own version of React specifically for emoji-mart.