nanot1m/react-foco

Enhancement: Add prop to customize emitted element

Closed this issue · 2 comments

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>?

Take a look at #3
😊

Released react-foco@1.3.0

Give it a try (: