Created
May 17, 2021 19:27
-
-
Save pflevy/8be2d26055152dc505090548a21f66e2 to your computer and use it in GitHub Desktop.
You can't create a React components with the code in this file. It's missing a wrapper element, and the best solution is to apply React Fragments.
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> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment