Simpler Alternative

In this lesson, we introduce an alternative library to React Tracked.

We'll cover the following

React Context #

While React Context can be used for global state, it is primitive. That’s why there are various libraries around it, and React Tracked is one of them. The strength of React Tracked is Proxy-based tracking, but we don’t need this for smaller use cases.

An alternative #

Out of various libraries, react-hooks-global-state covers a small use case. It only allows you to specify a part of the global state by object keys and is hardly misused.

Next #

Finally, we wrap up our entire course.

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy