Explore >> Select a destination


You are here

mariusschulz.com
| | yakovfain.com
13.3 parsecs away

Travel
| | In the previous blog, I generated a new React/TypeScript app using the create-react-app tool. In this blog, you'll get familiar with two types of React components, and what a component's state is for. Two types of React components A React component can be declared either as a function or as a class. A functional component...
| | codewithstyle.info
11.4 parsecs away

Travel
| | I love the Advanced Types section of TypeScript docs. There are some amazing features out there. However, the first time I saw some of them, I didn't
| | sethops1.net
16.9 parsecs away

Travel
| |
| | mbuffett.com
76.6 parsecs away

Travel
| Recently I migrated my side-project from Redux, which I've used in every React project for the past four years, to pullstate, here is my tale. Problems with Redux Feel free to skip this part if you already know the pain points of Redux, there's nothing in here that hasn't been discussed a million times before. These are the problems as I see them, most important first: The boilerplate. Oh man, the boilerplate. Want to add a counter? First, add the field to your interface (I'm assuming TypeScript), add a default value, create a new action type for the incrementing, write an action creator, add the case to your reducer, add the dispatcher hook to your component, dispatch your action creator. It's exhausting just to list the steps, nevermind actually doing it for every bit of state you need to keep track of.