react-oauth-flow
react-oauth-flow copied to clipboard
[#32] Fix for 'h' not defined.
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.
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 👍