Featured image of post React: Creating a Custom Hook for Fetching Data

React: Creating a Custom Hook for Fetching Data

Fetching data from an external or internal API is a common use case for web applications. With react functional components, there are different hooks to fetch data. This post explains these hooks, and helps you to understand when to use them.

Featured image of post React: Creating a Custom Hook for Pagination

React: Creating a Custom Hook for Pagination

A custom hook is a React functional component which exports props where at least one prop is prefixed with the keyword `use`. The `use` prop acts like a constructor: It defines the initial value that the functional component needs. Other props can be functions or state values of your hook - you decide what you want to expose.

Featured image of post React: Introduction to Functional Components & Hooks

React: Introduction to Functional Components & Hooks

Hooks help you a lot because they allow you to write components exactly with the lifecycle methods that you need. Hooks also give your code a declarative layout, and yes, you will also type less. This article will help you to understand functional components and hooks and see which hooks you can use in your projects.

Featured image of post React: Designing a Board Game App

React: Designing a Board Game App

Board games are fast evolving hobby: In 2019, about 5000 new games were published! Although I’m well connected with the Berlin board games community, it’s still hard to catch up with who is playing what. Specifically, I would like to know when my friends signal an interest to play a game, or when they bought a new game.