I am using reactjs to try and navigate through a list of components using the keyboard kind of like how you can navigate through facebook using the j and k keys. How can I shift focus to the first component in the list using the j key when I first land on the page and then shift focus between the components after using j and k?
<ul className={s.feed}>
{this.props.data.map((item, index) => {
<li key={index} className={s.componentContainer}>
<Component component={item} />
</li>
})}
</ul>
so what the code does is basically generates components into the ordered list and im just wondering how I can shift focus between them with the j and k keys and not using tab.