Created
January 18, 2019 15:36
-
-
Save marcelmokos/b268b8029255d9ea6848c9b8f698f23b to your computer and use it in GitHub Desktop.
Calendar
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"; | |
import ReactDOM from "react-dom"; | |
import Calendar from "./components/Calendar"; | |
const App = () => ( | |
<> | |
<Calendar> | |
{({ Wrapper, Column, Box, Item, headers }) => ( | |
<Wrapper> | |
{headers.map((header, index) => ( | |
<Column> | |
{header} | |
<Box> | |
<Item>Item</Item> | |
<Item>Item</Item> | |
<Item>Item</Item> | |
</Box> | |
<Box> | |
<Item>Item</Item> | |
<Item>Item</Item> | |
<Item>Item</Item> | |
</Box> | |
</Column> | |
))} | |
</Wrapper> | |
)} | |
</Calendar> | |
</> | |
); | |
const rootElement = document.getElementById("root"); | |
ReactDOM.render(<App />, rootElement); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment