This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<></> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<React.Fragment > </React.Fragment> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<React.Fragment key={entry.id}> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MyComponent = (props) => { | |
const renderFullHeader = () => { | |
return ( | |
<> | |
<h2>{entry.header}</h2> | |
<h3>{entry.subheader}</h3> | |
</> | |
); | |
}; | |
return ( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MyComponent = (props) => { | |
return ( | |
<> | |
{props.fullHeader ? ( | |
<> | |
<h2>{entry.header}</h2> | |
<h3>{entry.subheader}</h3> | |
</> | |
) : ( | |
<span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MyComponent = (props) => { | |
return ( | |
<> | |
{props.entries.map((entry) => ( | |
<React.Fragment key={entry.id}> | |
<h2>{entry.header}</h2> | |
<h3>{entry.subheader}</h3> | |
</React.Fragment> | |
))} | |
</> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
const MyComponent = (props) => { | |
return ( | |
<> | |
<li>Grouped list item</li> | |
<li>Grouped list item</li> | |
<li>Grouped list item</li> | |
</> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<> This is a Fragment </> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
const MyComponent = (props) => { | |
return ( | |
<React.Fragment> | |
<li>Grouped list item</li> | |
<li>Grouped list item</li> | |
<li>Grouped list item</li> | |
</React.Fragment> | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
const MyComponent = (props) => { | |
return ( | |
<li>Ungrouped list item</li> | |
<li>Ungrouped list item</li> | |
<li>Ungrouped list item</li> | |
); | |
}; |
NewerOlder