React: Get form input value with useState hook
The simple example below shows you how to get the value from an input field in React. App preview The sample app we are going to build has a text input. When the user types something…
Understand React useContext hook through Example
The React Context API is useful for passing data (including number, object, function… ) deeply throughout a React app. It makes your life much easier than using multi-level props. The useContext hook is available in React…
3 Best Libraries to Create Pie Charts in React (2022)
There are various libraries out there to help you create a beautiful pie chart (aka circle chart, pie graph, etc) in React without any pain. This article will walk you through the most outstanding ones among…
Passing Data from a Child Component to the Parent in React
In React, passing data from a parent component into a child component is quite easy with “props”. On the other hand, passing data from a child component to a parent component is a little more complicated…
How to use react-ga to track your React website traffic
This tutorial shows you how to track your React app (or website) traffic with Google Analytics. Prerequisites To follow this tutorial, you should have: A Google Analytics account Basic React knowledge Installation The react-ga library is…
How to use Font Awesome icons in React
This article will show you how to use Font Awesome icons in a React app. Firstly, let’s install the necessary packages: Next, import the icons you need and use them (and style them) in your React…
« Previous 1 … 8 9 10