Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 (














);
}
```