react-armory-reversible-list
v0.1.1
Published
A reverseible list that can be used to demonstrate how React's key prop works.
Downloads
7
Readme
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.