From f6d185632c4d688436f389432ea17e7517d14a65 Mon Sep 17 00:00:00 2001 From: Ken Date: Thu, 28 Feb 2019 14:09:25 -0800 Subject: [PATCH 1/6] simplify 2-2 exercise --- step2-02/README.md | 22 +++--- step2-02/demo/src/components/TodoApp.tsx | 5 +- step2-02/exercise/src/components/TodoApp.tsx | 76 ++++++++++++++++++- .../exercise/src/components/TodoFooter.tsx | 17 ++++- .../exercise/src/components/TodoHeader.tsx | 59 +++++++++++--- step2-02/exercise/src/components/TodoList.tsx | 26 +++++-- .../exercise/src/components/TodoListItem.tsx | 74 ++++++++++++++++-- 7 files changed, 239 insertions(+), 40 deletions(-) diff --git a/step2-02/README.md b/step2-02/README.md index fbd87c5..44dff64 100644 --- a/step2-02/README.md +++ b/step2-02/README.md @@ -107,19 +107,19 @@ Stack abstracts these CSS styles and provides typings to make them more discover Check out a cookbook of sorts in our [documentation](https://developer.microsoft.com/en-us/fabric#/components/stack). -# Exercise +# Exercise 1: Getting familiar with the Fabric documentation site: -1. Open the [documentation for DefaultButton](https://developer.microsoft.com/en-us/fabric/#/components/button) -2. Open each TSX file inside `exercise/src/components` -3. Replace some of the built-in HTML tags with these Fabric components: +Open the [documentation for DefaultButton](https://developer.microsoft.com/en-us/fabric/#/components/button) -- Stack -- DefaultButton -- Checkbox -- TextField -- Pivot (for the filter) +# Exercise 2: "Fabric"ize the TodoFooter.tsx -> Hint: think about how you can use Stacks to make the layout look nicer. +1. Open TSX file inside `exercise/src/components/TodoFooter.tsx` +2. Follow the top TODO comment to import Stack, Text and DefaultButton components from Fabric +3. Follow the TODO comment to: + +- replace `