erikras

Stars and mentions

Last 30 days, Oct 4 – Nov 2

GitHub stars2
mentions1
01234Oct 4Oct 18Nov 2
UTC days · repositories erikras owns5 repositories

Package downloads

Cumulative recorded downloads · since 2025-10-31

npm538
0135270405540Oct 4Oct 18Nov 2
Oct 29npm: 1/1 packages observed

Across 1 known packages in repositories erikras owns. Cumulative totals include recorded downloads before the selected range. Missing observations leave gaps; totals may be incomplete.

Top repositories

erikras’s repositories ranked by new stars, as on trending.

Loading

Contributes to

Repositories outside erikras’s account where erikras opened or reviewed pull requests in the past 365 days.

Who noticed erikras

Everyone who starred or forked erikras’s repositories since the archive began in 2011.

Notable accounts

Ordered by the stars their own repositories have received.

Biggest fans

Accounts that starred the most of these repositories.

Breakout weeks

Each repository’s best week of new stars, with the release published around it.

Mentions

1post
Nov 30 posts
  1. Redux explained in a simple and succinct way for React developers --- title: Redux explained in a simple and succinct way for React developers published: true published_at: 2026-10-20 13:00 +0000 tags: react, redux, javascript canonical_url: khriztianmoreno.dev --- Redux is a widely used state management library for React and TypeScript applications. It’s easier than ever to manage state in React thanks to the useState React Hook, as well as the Context API. However, when your codebase grows very large, you’ll need a more powerful and structured state management solution, rather than an ad-hoc one. That’s where Redux can help. !Redux Why do you need Redux? When working with React, you usually end up with state that is used globally throughout the entire application. One of the approaches to sharing state across the component tree is to use the Context API. We often use it in combination with hooks like useReducer and useState to manage global application state. This approach works, but it can only take you so far. In the end, you have to invent your own ways to manage side-effects, debug, and split state management code into modules so that it doesn't become an incomprehensible mess. A better idea is to use specialized tools. One such tool to manage global application state is Redux. How Redux Works Redux is a state management framework that is based on the idea of ​​representing the global state of the application as a reducer function. In Redux, to manage state, we define a function that accepts two arguments: state, for the previous state, and action, the object that describes the state update. function reducer(state = "", action: Action) { switch (action.type) { case "SET_VALUE": return action.payload; default: return state; } } This reducer represents a string value. It handles only one type of action: SET_VALUE. If the received action field type is not SET_VALUE, the reducer returns the unchanged state. After having the reducer, we create the store using the redux createStore method. const store = createStore(reducer, "Initial Value"); The store provides a subscription method that allows us to subscribe to updates to the store. store.subscribe(() => { const state = store.getState(); console.log(state); }); Here, we've passed a callback that logs the state value to the console. To update the state, we dispatch an action: store.dispatch({ type: "SET_VALUE", payload: "New value", }); Here we pass an object representing the action (action). Each action is required to have the type field and optionally, payload. Usually, instead of creating actions in place, people define action creator functions: const setValue = (value) => ({ type: "SET_VALUE", payload: value, }); And this is the essence of Redux. Why can't we use the useReducer hook instead of Redux? Since version 16.8, React supports Hooks. One of them, useReducer, works very similarly to Redux. It's easy to manage application state using a combination of useReducer and the React Context API. So why do we need Redux if we have a native tool that also allows us to represent state as a reducer? If we make it available throughout the application using the Context API, won't that be enough? Redux offers some important advantages: - Browser Tools: You can use Redux DevTools to debug your Redux code. It allows us to see the list of dispatched actions, inspect the state, and even travel back in time. You can toggle through the history of actions and see how the state dealt with each of them. - Handling Side Effects: With useReducer, you have to invent your own ways to organize the code that makes network requests. Redux provides the Middleware API to handle that. Additionally, there are tools like Redux Thunk that make this task even easier. - Testing: Since Redux is based on pure functions, it is easy to test. All testing comes down to checking the output against the given inputs. - Patterns and code organization: Redux is well studied and there are recipes and best practices you can apply. There is a methodology called Ducks that you can use to organize Redux code. Building with Redux Now that you've seen examples of what Redux does and how it works, you're ready to use it in a real project. !Profile @khriztianmoreno

Trending awards, every completed day and week
Gold
01st place finishes
Silver
02nd place finishes
Bronze
03rd place finishes
Awarded repositories
0Owned by erikras now

No trending awards yet

None of the repositories erikras owns has finished in the top three of a completed trending day or week, by stars, forks or PR authors. See who is trending now.

A repository earns an award for finishing first, second or third in a completed trending day or week, ranked by new stars, new forks or pull request authors. Awards follow a repository through renames and transfers and count toward its current owner. Weeks run Monday to Sunday, UTC.