Enhancement: Add prop to customize emitted element
Closed this issue · 2 comments
greg-a-smith commented
When using this package, it will automatically emit a <span>
element in the DOM. Not that this is terrible, but depending on where it is used, you could end up with <div>
elements inside the <span>
, which is not recommended.
What about adding a prop to define the emitted element and have the default be <span>
?
nanot1m commented
Released react-foco@1.3.0
Give it a try (: