/* Main.re */
type slide = {
media: string,
start: float,
duration: float,
inpoint: float,
text: string,
};
let pipelineID = Vendor.init();
let cur = ref(0);
List.iter(slide => {
Vendor.add_media(
pipelineID,
slide,
cur^
);
cur := cur^ + 1;
}, slides)
Vendor.render(pipelineID, Sys.argv[1]);
// package.json
{
"name": "esy-foo",
"version": "0.1.0",
"esy": {
"build": "dune build -p #{self.name}",
},
"buildDirs": {
"bin": {
"imports": [
"Vendor = require('vendor')"
],
"bin": {
"EsyFooApp.exe": "EsyFooApp.re"
}
}
},
"dependencies": {
"vendor": "^1.2.3"
}
}
Rewinding...DOM as second class citizen in React
ReveryUI = React outside the browser
The unguessable benefactor of React - package management!
Reason in the real world?
What's next?
Thank you :)