Hi all
Can someone please show me, how to work with findDOMNode from https://reasonml.github.io/reason-react/docs/en/dom.html?
What am I trying to archive is, I have the following element:
<div class="nav-menu fixed-top"> .
in JQUERY, I would interacting it like:
With JQUERY I would do like:
function menuscroll() {
var $navmenu = $('.nav-menu');
if ($(window).scrollTop() > 50) {
$navmenu.addClass('is-scrolling');
} else {
$navmenu.removeClass("is-scrolling");
}
}
menuscroll();
How to do it with reason react?
Thanks