简体   繁体   中英

How to call a window function in isomorphic react app?

In an Isomorphic react application we use same codebase for client and server.But how to call a window.function() from inside server(node js)call.

if I try to call some function in third party library it throws error as windows is undefined

window仅在安装组件时定义,因此您无法访问绑定到window任何组件。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM