Skip to content

v1.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 17 Aug 09:01
· 23 commits to main since this release

Coverage Status npm bundle size

npm i @uiw/react-only-when@1.2.0

v1.1.1...v1.2.0

<Switch />

import { Switch, Case, Default } from '@uiw/react-only-when/switch'

<Switch>
  <Case condition={age < 6}>preschool</Case>
  <Case condition={age >= 6}>primary school</Case>
  <Default>you graduated</Default>
</Switch>