我正在学习本教程中的react js,但当我尝试使用this.props.children时,我总是遇到同样的问题。有人能告诉我出了什么问题吗?这是我的main.jsvar Main= React.createClass({ <div className='main-container'>Hello from main
{t
React.FunctionComponent = (props) => { <p>I am a React.FunctionComponent</p>};const MyComponentB = (props) => { <p>I am a plain JS function component</p>
);
let ref = React.useRef(Js.Nullable.null); {Belt.List.map(items;let children = el->ReactDOMRe.domElementToObj##children;
我对孩子们有意见。如果我使用Js.log(children),我会在开发控制台中看到适当的子列表。但是List.length(chi