我试图将jquery.gridster包装为react组件,但得到了一个错误。‘未捕获的TypeError:(0,_jquery2.default)(...).gridster不是函数’ componentDidMount(}).data('gridster');我已经向index.html添加了脚本标记
<script type
我编写了简单的react组件来渲染棋盘,但它在国际象棋模块中抛出了一个错误: ReferenceError:$ is not defined。组件代码:import Chess from 'chessboardjs';
export default class<div id="chessboard" style={{"width":