JSFiddle - React, Tailwind, and code Playground

HTML

<div id="nofix" style='position: fixed; left:0; width:1200px; height: 20px; background-color: red;'> {menu}</div>

<div style='width:1000px; height:1000px; margin-left: 200px; border-left: 3px solid #777'> {content} </div>

JavaScript

$(document).scroll(function(){
    k=$(this).scrollLeft();
    $('#nofix').css('left', -k);
});