1、源码文件中REACT_STRICT_MODE_TYPE as StrictMode,
2、export const REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
打印内容查看
<DataBox >
<React.Fragment key="test-fragmemt">
<React.StrictMode>
<div>hello Fragments</div>
</React.StrictMode>
</React.Fragment>
</DataBox>
export default DataBox(props){
console.log('props',props);
return (
<div></div>
)
}