In JavaScript there is the idiom:
const ScrollTrigger = require('ScrollTrigger-classes');
var trigger = new ScrollTrigger({
once: true
});
How do I do the same thing in ClojureScript using Shadow-CLJS for npm modules?
In JavaScript there is the idiom:
const ScrollTrigger = require('ScrollTrigger-classes');
var trigger = new ScrollTrigger({
once: true
});
How do I do the same thing in ClojureScript using Shadow-CLJS for npm modules?