Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Latest commit

 

History

History
10 lines (10 loc) · 462 Bytes

CHANGELOG.MD

File metadata and controls

10 lines (10 loc) · 462 Bytes

v1.0.7

  • Switch
    • Add debug props, if debug={true} console.warn if no Case match nor Default
  • Case
    • children props can now be a render props. children={matchedValue => (<span>{matchedValue}</span>)}
  • Default
    • children props can now be a render props. children={() => (<span>Default</span>)}
  • Match
    • children props can now be a render props. children={matchValue => (<span>{matchValue}</span>)}
    • same for fallback props