Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counter and Scroll Event

In this assignment, I learned how to effectively use the useEffect hook in React and how dependencies work within it. Additionally, I explored how to handle scroll events to perform multiple tasks in response to user interactions.

Key Learnings:

Using useEffect:

The useEffect hook allows us to perform side effects in functional components, such as fetching data, directly interacting with the DOM, or setting up subscriptions. Understanding its dependency array is crucial to ensure that effects run only when necessary.

Handling Scroll Events:

I implemented scroll event listeners to execute tasks based on the scroll position of the window. This allows for dynamic behavior in the application, such as updating a counter, changing styles, or triggering animations.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages