rescript

Can I make Reason+React import react module from CDN?

淺唱寂寞╮ 提交于 2021-02-05 09:15:27
问题 Building a component with Reason and React always gives me an module import statement for "react", which cannot be found if React is included from a CDN. Is there a solution for this? I've tried to define window.react = React in index.html without success. es6-global setting does not change anything. I'm not using a bundling program like webpack. Edit: Possibly relevant thread from Reason forum: https://reasonml.chat/t/can-one-load-reasonml-es6-modules-without-a-bundler/2219 Similar issue