react-armory-reversible-list

0.1.1 • Public • Published

react-armory-reversible-list

This package is designed to demonstrate why you need key props on React Elements in arrays. It exports a ReversibleList component that expects a single array as a child, and renders these children along with a "Reverse" button -- which will only work if the child array has keys.

Exports

  • <ReversibleList children={array}>

Why?

This is used within an introduction to React.

Learn React From The Comfort Of Your Web Browser

Try it live

You can see a usage example and try the component out at React Armory.

/react-armory-reversible-list/

    Package Sidebar

    Install

    npm i react-armory-reversible-list

    Weekly Downloads

    3

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • jamesknelson