render function is passed more than just state. You’re also given
getItemProps. These are “prop getters” (inspired by Jared Forsyth) and they are the key to allowing you to render whatever you like. So long as you forward all the props to the appropriate element you’re rendering (if you’re renderi…
I think a reason that so many applications use and embrace redux is because it incidentally solves the prop-drilling problem with the
connect higher order component that react-redux gives you. The prop-drilling problem is a pain that even relatively small applicat…
and we’re res
ponsible for ren
dering things based
on th… function which is invoked with some helper methods and state for us to build our component out of.
downshift is responsible for managing the user interaction, state, and most of accessibility for us, and we’re responsible for rendering things based on that state.