Created
November 2, 2019 18:20
-
-
Save pubudu-ranasinghe/a66fb1c3edc52b0e16f07ae1dacd7fdc to your computer and use it in GitHub Desktop.
react-context-example-10
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, { useState } from "react"; | |
import { ItemList, NewItem } from "./components/Items"; | |
import { TodoProvider } from "./contexts/TodoContext"; | |
import "./App.css"; | |
function App() { | |
return ( | |
<TodoProvider> | |
<div className="App"> | |
<header className="App-header"> | |
<h2>🚀 ToDo App</h2> | |
<NewItem /> | |
<ItemList /> | |
</header> | |
</div> | |
</TodoProvider> | |
); | |
} | |
export default App; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment