【发布时间】:2018-09-21 21:11:47
【问题描述】:
Warning: Received `false` for a non-boolean attribute `comingsoon`.
If you want to write it to the DOM, pass a string instead:
comingsoon="false" or comingsoon={value.toString()}.
如何在 React 的自定义属性中传递布尔值?
我正在使用 styled-components 并通过组件传递属性。这是我如何通过 attr 的图片。
【问题讨论】:
标签: reactjs styled-components react-16