React Components

The React snippet collection contains function components and reusable hooks for React 16.

  • Uncontrolled textarea element

    Renders an uncontrolled <textarea> element that uses a callback function to pass its value to the parent component.

    React, Components · Nov 25, 2020

  • Show/hide password toggle

    Renders a password input field with a reveal button.

    React, Components · Nov 25, 2020

  • React PropTypes - objectOf vs shape

    Learn the differences between PropTypes.objectOf() and PropTypes.shape() and where to use each one with this quick guide.

    React, Components · Jun 12, 2021

  • Email link

    Renders a link formatted to send an email (mailto: link).

    React, Components · Nov 16, 2020