React.createElement(FilterLink, { filter: 'SHOW_ALL', children: React.createElement(
'span',
null, // flow error : null This type is incompatible with props of JSX Intrinsic: `span`
'All'
) }),
有人可以解释这个错误的含义吗?
答案 0 :(得分:1)
在IRC上得到答案:
React.createElement(FilterLink, { filter: 'SHOW_ALL', children: React.createElement(
'span',
{}, // no more error
'All'
) }),