Skip to content

Complete useEffect Lab#3

Open
cmhorsey wants to merge 1 commit into
learn-co-curriculum:masterfrom
cmhorsey:test_branch
Open

Complete useEffect Lab#3
cmhorsey wants to merge 1 commit into
learn-co-curriculum:masterfrom
cmhorsey:test_branch

Conversation

@cmhorsey
Copy link
Copy Markdown

Used the useEffect hook with the dependencies array and used a cleanup function with useEffect to stop background processes.

@@ -1,9 +1,20 @@
import React, { useState } from "react";
import React, { useState, useEffect} from "react";
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
import React, { useState, useEffect} from "react";
import React, { useState, useEffect } from "react";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants