Update snippet formatting

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-09-06 14:20:45 +03:00
parent f384fc0ee3
commit 95746a843b
18 changed files with 60 additions and 71 deletions

View File

@ -61,7 +61,7 @@ Renders a button that animates a ripple effect when clicked.
```
```jsx
function RippleButton({ children, onClick }) {
const RippleButton = ({ children, onClick }) => {
const [coords, setCoords] = React.useState({ x: -1, y: -1 });
const [isRippling, setIsRippling] = React.useState(false);
@ -102,12 +102,12 @@ function RippleButton({ children, onClick }) {
}}
/>
) : (
""
''
)}
<span className="content">{children}</span>
</button>
);
}
};
```
```jsx