我得到的输出是html标记;因此我使用dangerouslySetInnerHTML来避免出现错误"Type '{ contents: Element;}‘is not assignable to type我的react代码如下:import { RouteComponentProps } from 'react-router';
interf
我的function库通过给客户端一个回调引用函数来获得一个引用,以将库要操作的元素放在上面:// --- library
<div ref={targetMe}>This is my element for the library to operate on</div>我已经知道,当您使用进行引用时,它的类型是React</e