Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function Button() {
const { ref, focused } = useFocusable();
return (<div ref={ref} className={focused ? 'button-focused' : 'button'}>
Press me
</div>);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment