We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a32b916 + ebfac66 commit 4f9fe44Copy full SHA for 4f9fe44
pages/JSX.md
@@ -378,18 +378,18 @@ class Component extends React.Component<PropsType, {}> {
378
}
379
380
// OK
381
-<Component>
+<Component name="foo">
382
<h1>Hello World</h1>
383
</Component>
384
385
// Error: children is of type JSX.Element not array of JSX.Element
386
+<Component name="bar">
387
388
<h2>Hello World</h2>
389
390
391
// Error: children is of type JSX.Element not array of JSX.Element or string.
392
+<Component name="baz">
393
<h1>Hello</h1>
394
World
395
0 commit comments