Update all snippets to new format

This commit is contained in:
Angelos Chalaris
2019-08-21 12:28:50 +03:00
parent 3deff54251
commit 7dfaffe7ac
26 changed files with 108 additions and 132 deletions

View File

@ -1,4 +1,7 @@
### Slider
---
title: Slider
tags: input,beginner
---
Renders a slider element that uses a callback function to pass its value to the parent component.
@ -21,7 +24,3 @@ function Slider({ callback, disabled = false, readOnly = false }) {
```jsx
ReactDOM.render(<Slider callback={val => console.log(val)} />, document.getElementById('root'));
```
<!-- tags: input -->
<!-- expertise: 0 -->