我使用的是React.js,而且我对web开发来说还是个新手。我正在尝试渲染componentDidMount方法中的div,但它们没有被渲染,并且我收到警告消息"Expected to return a value in arrow function array-callback-returnstreamingLink.relationships.streamer.links.related) .then(data => {
很多时候,当我使用Eslitn或其他linting工具时,我得到的错误是这样的: Err: // Expected to return a value at the end of arrow function箭头函数总是必须返回值吗?如果箭头函数必须返回值,那么返回值的原因是什么? 例如,在这段特定的代码中,如果没有传递条件,则不需要返回任何内容。无论如何,我的林特向我让步,犯了刚才提到的错误。value = `;