Skip to content

Instantly share code, notes, and snippets.

@pubudu-ranasinghe
Last active November 2, 2019 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pubudu-ranasinghe/9df053a0dd9e5504c50acd73487889df to your computer and use it in GitHub Desktop.
Save pubudu-ranasinghe/9df053a0dd9e5504c50acd73487889df to your computer and use it in GitHub Desktop.
react-context-example-03
import React from "react";
import { ItemList, NewItem } from "./components/Items";
import "./App.css";
const items = ["Setup basic components", "Add some styling"];
function App() {
return (
<div className="App">
<header className="App-header">
<h2>🚀 ToDo App</h2>
<NewItem />
<ItemList items={items} />
</header>
</div>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment