-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from neu-se/m09-react-hooks
M09 react hooks
- Loading branch information
Showing
7 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ vendor/ | |
*~ | ||
.DS_Store | ||
Gemfile.lock | ||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
layout: module | ||
title: "9 - React Hooks" | ||
permalink: /modules/9-patterns-of-react | ||
parent: Modules | ||
nav_order: 9 | ||
lessons: | ||
- title: "React Hooks" | ||
ppt: "Module 09 React Hooks.pptx" | ||
pdf: "Module 09 React Hooks.pdf" | ||
|
||
--- | ||
### Learning Objectives: | ||
Building on Module 8, we will have a deeper discussion of common patterns of programming with React. By the end of this module you should be able to: | ||
|
||
* Explain the basic uses of `useEffect` | ||
* Explain when a `useEffect` is executed, and when its return value is executed | ||
* Construct simple custom hooks and explain why they are useful | ||
* Be able to map the three core steps of a test (assemble, act, assess) to UI component testing. | ||
|
||
|
||
{% include lesson.html %} | ||
|
||
### Activity | ||
* No activity this week | ||
|
||
|
||
### Resources | ||
* [Code examples from lecture (zip)]({{ site.baseurl }}{% link Examples/module-09-react-hooks-examples.zip %}) | ||
* [React reference for `useEffect`](https://react.dev/reference/react/useEffect) | ||
* [Your First Test With Cypress](https://docs.cypress.io/guides/end-to-end-testing/writing-your-first-end-to-end-test) | ||
* [testing-library for React](https://testing-library.com/) |