我有一個字符串,它實際上是一個嵌套的反應組件名稱及其道具。想要在另一個反應組件內渲染該字符串。 例如 var String = "<parentComponent title='Parent'><childComponent age='23'></childComponent></parentComponent>"
陣營代碼: - class MainComponnet extends Com
如果o對象包含一個密鑰/值對:foo: 'bar'可以我取決於這些結果?: // foo will be 'bar'
<MyComponent
foo='should not override'
{...o}
/>
// foo will be 'overridden'
<MyComponent
{...o}
foo='overridden