Add an Alias to MacOS Terminal

If you find yourself typing in cd… a lot in MacOS Terminal and you’re running zsh, you can add a shortcut, or alias to your .zshrc resource file. Here’s how: From a new terminal window, type This will open that resource file in nano and it’s ready for editing. Scroll all the way to the…

Read more Add an Alias to MacOS Terminal

useState props

Whenever you call useState in React, you get back two elements. The first value will always be its most recent state and the second value is the value you want to set state to. The const above is called array destructuring and in our particular instance, it’s used to give us direct access to the…

Read more useState props

Redux Reducers

In my current self directed learning path about React, I’m wrapping my head around Redux and how it’s used to manage state. In C# we have an Aggregate() method that takes in a collection and spits out a single value. For instance: Can you guess what the value of result is? If you guessed (or knew) 40,…

Read more Redux Reducers

Stateful Components in React

I haven’t jumped into state in functional components yet. But I am learning about state in class components. When building a class in React, it’s helpful to extend (in C# we call this an override (inheritance)) React.Component. In order to pass arguments (props) to this class though, you must pass the props into the class constructor as well…

Read more Stateful Components in React