Tag input field
Create a custom input field with selectable tags, using React.
The React snippet collection contains function components and reusable hooks for React 18.
Create a custom input field with selectable tags, using React.
Ever wanted to transform an array into a table or an object into a tree view? Here are some React components that can help you do just that.
Dialog components like tooltips, alerts and modals are essential for user interaction. Learn how to create them in React.
Render a checkbox list that uses a callback function to pass its selected value/values to the parent component.
Collapsible content is a common UI pattern. Learn how to create collapsible content components in React in this short guide.
Learn how to create an animated button with a ripple effect when clicked.
Create your custom textarea components, with a word or character limit in React.
Create your very own star rating component in React.
Create a file drag and drop React component for a single file.
Learn of all the different ways to set the value of a selected input in React with this quick guide.
Learn how to create your own lazy loading image component in React.
Render a simple toggle component in React.
Ever wondered how to detect links in plaintext strings and make them clickable? A little ingenuity combined with React can get you there.
In React components, you might need to conditionally apply a className
. Learn how to handle empty values correctly using this handy tip.
Create a countdown timer that prints a message when it reaches zero, using React.
Ever wanted to show the password the user is typing? Here's how you can create a password input field with a reveal button in React.
Render links formatted to send an email (mailto:
link) or call a phone number (tel:
link).
Learn the differences between PropTypes.objectOf()
and PropTypes.shape()
and where to use each one with this quick guide.