Practical solutions

React Howtos How-To Guides

Solve the problem. Keep building. Collection of React how-to articles

Find the answer you need

Browse practical solutions, grouped by the task you're working on.

__COUNT__ entries on this page

How to Use Multiple Class Names in ReactApplying multiple classes to JSX elements works a little differently than HTML. Let's take a look at how it works How to Set a Component Style After onScroll EventLearn how to listen to an onScroll event and update the element styles accordingly How to Implement Radio Button in ReactThis article introduces how to implement radio button in react. How to Use Redirect in React RouterRedirecting users is an essential part of building complex React applications. How to Use FontAwesome Icons in React ApplicationsUsing FontAwesome package for visuals in your React application How to Validate React FormLearn how to implement React form validation to increase the UX and security of your app. How to Implement Copy-To-Clipboard Feature in ReactLearn how to improve the UX of your website by Implementing a button to copy a piece of text. How to Get Current URL in ReactDevelopers often need to access current URL of React application. In this guide, we demonstrate multiple ways to do it. How to Disable Buttons in ReactThis tutorial demonstrates how you can disable button in react.js using React's state. How to Pass Props to Children in ReactComposition is an important feature of React. In this article, we will explore props.children and how to pass props to it. How to Get the Value of an Input Field in ReactHandling input fields is a key piece of the puzzle for creating advanced React components. How to Use the Switch Statement in a React ComponentA lot of times React developers need to use switch statements in their components. In this post we explore multiple ways to do so. How to Use Moment.js for React AppsIn this article, we'll explain how to use Moment.js for formatting dates in React How to Set Up onClick Event Handler on Link ComponentIn this article we'll look into setting up onClick event on a Link component. How to Create Navbar in ReactThis tutorial demonstrates how to create a Navbar in React. How to Set Up Countdown Timer in ReactThis article will explain how to set up countdown timer in React. How to Refresh a Page in ReactThis article demonstrates ways to refresh a page in React. You can refresh a page manually or by updating the local state of the component. How to Export React ComponentsThis article will explore the two types of export statements to reuse components in React. How to Download Files in ReactThis article will demonstrate ways to download files in React by using download attribute and js-file-download plugin. How to Display Iframe in React ApplicationIn this article, we will discuss two different approaches to display an iframe within React application. How to Configure Webpack in a Create-React-App ProjectThis article will explore how to locate and adjust create-react-app webpack files and configurations in React. How to Style Hover in ReactThis tutorial demonstrates how to style hover in React. How to Decide Between Context API and ReduxContext API and Redux are two excellent options for sharing data in a React application. In this article, we'll help you decide which one is better. How to Use Event Handlers and Other Attributes on Material UI ButtonsThe official Material UI documentation doesn't list native event handlers in its documentation. This article will guide us on how we will know which ones you can use.