Closed zbaylin closed 2 years ago
This removes the need to set React globally using a file similar to examples/src/react-requires.js.
examples/src/react-requires.js
Rather than gen_js_api referring to a global named React/ReactDOM, we import the libraries once using require and partially apply js.calls
gen_js_api
React
ReactDOM
require
js.call
Thanks @jchavarri for the help with this!
Thanks again @zbaylin for working on this! 🎸 Merging
This removes the need to set React globally using a file similar to
examples/src/react-requires.js
.Rather than
gen_js_api
referring to a global namedReact
/ReactDOM
, we import the libraries once usingrequire
and partially applyjs.call
sThanks @jchavarri for the help with this!