i use materializecss ui in reactjs isomorphic web-application.
make server-side rendering possible need define variables on server side, including jquery $
. , materialize has own functions based on jquery.
so, if import jquery module, not work materialize.
if import jquery regular way - script in index.html, server side rendering complaining undefined variables $
.
if both, conflicts.
there npm module, don't how can use it? usually, materialize adds global functions. should make global in root .js file somehow? if so, how do that?
import jquery 'jquery'; global.$ = jquery;
Comments
Post a Comment