How to use jquery & custom js like : $("#header").sticky({ topSpacing: 0, zIndex: "50" }); in reactjs
Below config is not working for me.
I am using this repo. https://github.com/ctrlplusb/react-universally
import $ from 'jquery';
require('bootstrap3');
require('../../assets/lib/stickyjs/sticky')
if (typeof window === 'undefined') {
global.window = {}
global.document = {}
}
SERVER: Error in server execution, check the console for more info.
ReferenceError: window is not defined