【发布时间】:2018-03-03 10:06:43
【问题描述】:
对于上下文,我在一个反应组件中看到它
export default class pageWithModal extends React.Component {
constructor(props) {
super(props);
window.jqueryFoo = false;
this.state = {
modal: false,
value: ''
};
}
handleModalOpen = () => {...};
handleModalClose = () => {...};
render()...
它有什么作用?谷歌搜索没有找到类似的东西
【问题讨论】:
-
I saw it in a react component是组件中对jqueryOn的唯一引用吗? -
是的,只有一个在整个代码库中
标签: javascript jquery reactjs ecmascript-6