react-oauth-flow icon indicating copy to clipboard operation
react-oauth-flow copied to clipboard

[#32] Fix for 'h' not defined.

Open mirkojotic opened this issue 6 years ago • 1 comments

Ran into the issue where 'h' is not defined. After a brief rabbit hole dive I've ran into this thread https://github.com/developit/microbundle/issues/12#issuecomment-357475732 And the next couple of comments were really helpful.

Turns out that default "pragma" is h but it's possible to change to anything else, in this case React.createElement

The way I verified it's working is by building it, moving it to examples folder and using it in the example app. Let me know if I missed something.

Solves #32 and #31

PS. @adambrgmn just for visibility.

mirkojotic avatar Jan 20 '19 23:01 mirkojotic

This did not build for me (got another jsx error). But if you just upgrade microbundle it builds.

The built files works, the h is finally defined 👍

alexfoo avatar May 11 '19 21:05 alexfoo