Tagged: React Hooks

How to use async functions in useEffect - Clue Mediator

How to use async functions in useEffect

The useEffect is the place where we mostly write code to get data. Data fetching is an asynchronous function so we can not use async/await in straightforward ways. In this...

Input validation in React - Clue Mediator

Input validation in React

In this article, we will show you how to add the validation for form input in React. Here, you will learn how to create a common Input component in React...

Checkbox list example in React - Clue Mediator

Checkbox list example in React

In this article, you will learn how to create a checkbox list in React. Here we will simply create a list of items with input checkboxes and handle the selection...