February 2019
Beginner to intermediate
180 pages
4h 4m
English
Let's try working with the DOM in pure Reason before jumping into ReasonReact. We'll write a module that does the following:
Create an index.html file in the project's root with the following content:
<html> <head></head> <body> <!-- if "in-source": false --> <script type="module" src="lib/es6/src/Demo.bs.js"></script> <!-- if "in-source": true --> <!-- <script type="module" src="src/Demo.bs.js"></script> --> </body></html>
Notice the type="module" attribute on the script tag. If all module dependencies are ES Module (ESM) compliant, and they are all available from within the browser, you don't need a module bundler ...
Read now
Unlock full access