Skip to content
This repository was archived by the owner on Jun 2, 2024. It is now read-only.

Commit 988f16e

Browse files
committed
docs(readme): update readme
1 parent 57e4e30 commit 988f16e

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

README.md

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -117,47 +117,6 @@ import { Switch } from 'react-semantic-render'
117117
</Switch>
118118
```
119119

120-
### ShowIfElse
121-
122-
Renders content from if when condition equals true, else renders content from else.
123-
124-
| Property | Type | Description
125-
|---|---|---|
126-
| `condition` | boolean | Conditional statement
127-
| `if` | function | Renders when condition is true
128-
| `else` | function | Renders when condition is false
129-
130-
```jsx
131-
import { ShowIfElse } from 'react-semantic-render'
132-
133-
<ShowIfElse
134-
condition={true}
135-
if={() => (
136-
<button>Render me!</button>
137-
)}
138-
else={() => (
139-
<button>No, render me!</button>
140-
)}
141-
/>
142-
```
143-
144-
### Hideable
145-
146-
Higher order component that injects 'hide' prop into specified component.
147-
148-
| Property | Type | Description
149-
|---|---|---|
150-
| `hide` | boolean | Conditional statement
151-
152-
```jsx
153-
import { Hideable } from 'react-semantic-render'
154-
import { Button } from './components'
155-
156-
const HideableButton = Hideable(Button)
157-
158-
<HideableButton hide={true} label="Click me!" />
159-
```
160-
161120
## Why
162121

163122
In the example below you see two very common use cases where you have to render something when a condition is true and render content from an array of data.

0 commit comments

Comments
 (0)