0.1.1 • Published 7 years ago

react-armory-reversible-list v0.1.1

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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.