Skip to content

Beta: Adding filter to with()

Pre-release
Pre-release
Compare
Choose a tag to compare
@secretlifeof 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>

changes