你好,我有一个jsfiddle:https://jsfiddle.net/hy8cuvfg/
html
<div id="container">
<!-- This element's contents will be replaced with your component. -->
</div>
js
ReactDOM.render(
{()=><p>hello world!</p>},
document.getElementById('container')
);
我正在尝试输出'hello world!'。我想使用匿名功能组件来完成这项工作:
()=><p>hello world!</p>
我该如何解决?谢谢:)