React Components

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

  • Accordion

    React, Components

    Renders an accordion menu with multiple collapsible content elements.

  • Alert

    React, Components

    Renders an alert component with type prop.

  • AutoLink

    React, Components

    Renders a string as plaintext, with URLs converted to appropriate link elements.

  • Carousel

    React, Components

    Renders a carousel component.

  • Collapse

    React, Components

    Renders a component with collapsible content.

  • ControlledInput

    React, Components

    Renders a controlled <input> element that uses a callback function to inform its parent about value updates.

  • CountDown

    React, Components

    Renders a countdown timer that prints a message when it reaches zero.

  • DataList

    React, Components

    Renders a list of elements from an array of primitives.

  • DataTable

    React, Components

    Renders a table with rows dynamically created from an array of primitives.

  • FileDrop

    React, Components

    Renders a file drag and drop 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.

  • LimitedTextarea

    React, Components

    Renders a textarea component with a character limit.

  • LimitedWordTextarea

    React, Components

    Renders a textarea component with a word limit.

  • Loader

    React, Components

    Renders a spinning loader component.

  • Mailto

    React, Components

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