react-switch_case
Advanced tools
+2
-2
| { | ||
| "name": "react-switch_case", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "react switch", | ||
| "main": "index.js", | ||
| "main": "react-switch-case.js", | ||
| "directories": { | ||
@@ -7,0 +7,0 @@ "test": "tests" |
+3
-3
| # react-switchCase | ||
| switch for react | ||
| - npm install react-switch_case or yarn add react-switch_case | ||
| ``` | ||
| import Switch from 'react-switch-case' | ||
| import Switch from 'react-switch_case' | ||
| const Case=Switch.Case | ||
@@ -19,4 +19,4 @@ function handle(value){ | ||
| } | ||
| <span>其他内容</span> | ||
| <span>default case</span> | ||
| </Switch> | ||
| ``` |
123699
0.05%