+ Basically three steps are needed: +
+<List>
with HOC
+ Wrapping the <List>
component with the higher order component "SelectableEnhance" enables
+ the clicked <ListItem>
to be highlighted.
+
+ If this component is used in conjunction with flux or redux this is a no-brainer. The callback-handler
+ just has to update the store. Otherwise the state can be held within e.g the parent, but it is to be to
+ considered that each time a <ListItem>
is clicked, the state will update and the parent - including it's
+ children - will rerender.
+
+ A possible solution for this is to use another hoc. An example can be found in the sourcecode
+ of docs/src/app/components/pages/components/lists.jsx
.
+
+ The prop 'valueLink' of <List>
has to be set, to make the highlighting controllable:
+
<ListItem>
+ The prop "value" on each ListItem has to be set. This makes the item addressable for the callback. +
+