Skip to content

Instantly share code, notes, and snippets.

@sumitkharche
Created May 9, 2020 14:14
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 sumitkharche/deef79bca975d176ac1f048f98149543 to your computer and use it in GitHub Desktop.
Save sumitkharche/deef79bca975d176ac1f048f98149543 to your computer and use it in GitHub Desktop.
import React, { useState } from 'react';
import './App.css';
import { Stack } from "@fluentui/react";
import TodoList from './components/TodoList';
function App() {
const [todos, setTodos] = useState([{ id: 1, name: "Todo Item 1" }, { id: 2, name: "Todo Item 2" }]);
return (
<div className="wrapper">
<Stack horizontalAlign="center">
<h1>Todo App using Fluent UI & React</h1>
<Stack style={{ width: 300 }} gap={25}>
<TodoList todos={todos} />
</Stack>
</Stack>
</div>
);
}
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment