ajay-dhangar / ajay-dhangar.github.io

👋 Hi there! Welcome to my portfolio repo! I'm Ajay Dhangar, a software engineer and tech enthusiast passionate about web development, open source, and building cool stuff. Currently working at a startup and mentoring at CodeHarborHub.
https://ajay-dhangar.github.io/
MIT License
6 stars 3 forks source link

Complited Module 8: Handling Data Flow in react js course #191

Closed ajay-dhangar closed 5 months ago

ajay-dhangar commented 5 months ago

Context API for managing global state without prop drilling (Optional)

In React applications, managing shared state between components can be challenging, especially when components are not directly related in the component tree. The Context API is a feature in React that allows you to manage global state without prop drilling. The Context API provides a way to pass data through the component tree without having to pass props down manually at every level. This lesson will introduce you to the Context API and show you how to use it to manage global state in your React applications.

Theme Switcher Example:

image

image

Introduction to Redux: Advanced state management for complex applications

In React applications, managing complex state across multiple components can be challenging, especially when components are not directly related in the component tree. Redux is a predictable state container for JavaScript apps that helps you manage complex application state in a more organized and efficient way. Redux provides a centralized store for your application's state and allows you to define actions and reducers to update the state in a predictable manner. This lesson will introduce you to the core concepts of Redux and show you how to integrate Redux into your React applications.

Redux Count App Example:

image

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud