Skip to content

Instantly share code, notes, and snippets.

@pflevy
Created May 17, 2021 19:27
Show Gist options
  • Save pflevy/8be2d26055152dc505090548a21f66e2 to your computer and use it in GitHub Desktop.
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.
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