- Switch
- Add debug props, if
debug={true}
console.warn if noCase
match norDefault
- Add debug props, if
- Case
- children props can now be a render props.
children={matchedValue => (<span>{matchedValue}</span>)}
- children props can now be a render props.
- Default
- children props can now be a render props.
children={() => (<span>Default</span>)}
- children props can now be a render props.
- Match
- children props can now be a render props.
children={matchValue => (<span>{matchValue}</span>)}
- same for
fallback
props
- children props can now be a render props.
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.