Superhero Code

Compartmentalizing Data Flow with React HOCs with TypeScript and Recompose

4 years ago

An Inconvenient Truth: Prop Drilling We've all worked on a React app where a component will take in multiple props only to pass them through to another component, which passes them through to another one, so on so forth. This is called Prop Drilling. We're going through each component as...

Creating Declarative React Components with CSS-in-JS and TypeScript

4 years ago

Why? Creating components in React can be difficult to do Naming things is hard Monolithic components aren't scalable We'll talk about how to alleviate those issues in this post. Component Creation Creating React components is pretty simple to do. import * as React from "react"; export default class App...