Beta: Adding filter to with()
Pre-release
Pre-release
secretlifeof
released this
20 Aug 14:36
·
88 commits
to master
since this release
This beta adds add a second argument to the 'with' function where you can remove props from the DOM element. Arguments takes an array of strings (string[]).
const Boxy = Box.with((textColor) => ({ color: textColor }) ,['textColor'])
<Boxy textColor="green">Green</Boxy>