An easy step-by-step guide covering everything from configureStore to createSlice.

Redux Logo
Redux Logo
Redux Logo

Introduction

This is why the Redux devs created the Redux Toolkit, a helpful React library that makes setting up and maintaining a global state easier than ever before. One issue a lot of devs come across with big libraries like Redux is forgetting the setup basics when starting a new project. This blog hopes to provide an easy step-by-step guide.

The Beginning — configureStore and Provider


A simple guide to a handy custom ‘React’ hook.

React logo
React logo
The ‘React’ Logo

Facebook’s ‘React’ library has made developing front-end components with JavaScript simpler and more programmatic. Because it is an open-source library, custom features are constantly being created that make a developer’s life easier.

One of those custom features is the useFetch hook. For those uninitiated, hooks are a new relatively new addition to React that allows one to access the state and lifecycle features of the library features without writing a whole new class. You can read a basic overview here: https://reactjs.org/docs/hooks-overview.html

useFetch — An Introduction

yarn add use-http    or    npm i -S use-http

The first step is to install the hook library by using…


Explaining the Four Pillars of Object-Oriented Programming using Fast Food (pt. 2)

By now, we’ve covered how the principles of Encapsulation and Abstraction operate within a programming language like Ruby to make methods and data-management more efficient and versatile (if you haven’t read part 1 yet, catch up here).

We used simple analogies like the McDonald’s corporation to show how these mental models can improve real-world processes. Now, it’s time to cover the last two pillars of OOP — Inheritance and Polymorphism.

Illustration of Objects sending messages to one another.
Illustration of Objects sending messages to one another.
It’s objects all the way down…

Inheritance

Like SuperClass like SubClass.

Inheritance is one of the easier pillars to understand because there are so many similar concepts that we come across in real life.

The basics of…


The four pillars of Object-Oriented Programming, explained with fast food (pt. 1).

When it comes to programming, many big-picture concepts can be very intimidating to newcomers. It’s hard to visualize ideas when they’re just text on a screen, but understanding the core of how computers and programming languages functions is key when it comes to creating real-world applications.

One of those surreptitiously dense concepts is Object-oriented programming.

A diagram of a human with Class, Objects, Properties, and Methods surrounding them.
A diagram of a human with Class, Objects, Properties, and Methods surrounding them.
Some common attributes of OOP

Object-oriented programming (or OOP) is a paradigm that directs software engineers to focus on manipulating relational data, grouped by classes, as opposed to using solely logic and algorithms.

The core of OOP relies on four principles: Abstraction, Encapsulation, Inheritance, and the joyful-to-say Polymorphism.

For this…

Max Beneke

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store