React Components
The React snippet collection contains function components and reusable hooks for React 16.
Learn of all the different ways to set the value of a selected input in React with this quick guide.
Renders an uncontrolled
<select>
element that uses a callback function to pass its value to the parent component.Learn the differences between
PropTypes.objectOf()
andPropTypes.shape()
and where to use each one with this quick guide.Renders a toggle component.
Renders a textarea component with a character limit.
Renders a spinning loader component.
Renders a tooltip component.
Renders a string as plaintext, with URLs converted to appropriate link elements.
Renders a component with collapsible content.
Renders a list of elements from an array of primitives.
Renders a controlled
<input>
element that uses a callback function to inform its parent about value updates.Renders an uncontrolled
<input>
element that uses a callback function to inform its parent about value updates.Renders an uncontrolled range input element that uses a callback function to pass its value to the parent component.
Renders a table with rows dynamically created from an array of primitives.
Renders a password input field with a reveal button.