Last active
March 20, 2021 22:41
-
-
Save mkirby/3b17e900f9f76a1e7f8af9005d7e22d6 to your computer and use it in GitHub Desktop.
Step 1: How to create a Semantic UI React functional table component
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, create, and export a base functional component setup | |
import React from "react"; | |
import scenarios from "./scenarios.json"; | |
import { Table } from "semantic-ui-react"; | |
function ScenarioTable() { | |
return ( | |
<div className="scenario__table"> | |
<Table> | |
{/* it's not much but it's a start! */} | |
</Table> | |
</div> | |
); | |
} | |
export default ScenarioTable; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://codesandbox.io/s/semantic-ui-react-creating-a-table-9gm60?file=/src/index.js