Skip to content

Add .addProps and .removeProps

Compare
Choose a tag to compare
@xaviervia xaviervia released this 06 Aug 11:01
· 83 commits to master since this release

New wrappers for easily adding and removing props:

const Title = Html.H1
  .removeProps('label')
  .addProps(({ label }) => ({
    children: label
  }))