Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ryardley/jsx-switch
Simple switching for React JSX
https://github.com/ryardley/jsx-switch
Last synced: 22 days ago
JSON representation
Simple switching for React JSX
- Host: GitHub
- URL: https://github.com/ryardley/jsx-switch
- Owner: ryardley
- Created: 2016-08-04T06:02:59.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-08-05T05:25:58.000Z (over 8 years ago)
- Last Synced: 2024-10-04T18:16:40.605Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 8
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jsx-switch
Simple switching for React JSX
Found a bug? Got a feature request? [Submit an issue!](https://github.com/ryardley/jsx-switch/issues)
# Installation
Install locally.
```bash
$ npm install jsx-switch --save
```Requires React 15.0.0 or later.
# Usage
```jsx
import { Switch, Case, Default } from 'jsx-switch';function MyComponent() {
return (
);
}
```