Skip to content

Commit 5df2bf2

Browse files
Create reload.md
1 parent 1b13437 commit 5df2bf2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Reload
2+
3+
```jsx
4+
function refreshPage() {
5+
window.location.reload(false);
6+
}
7+
8+
function App() {
9+
return (
10+
<div>
11+
<button onClick={refreshPage}>Click to reload!</button>
12+
</div>
13+
);
14+
}
15+
16+
export default App
17+
```

0 commit comments

Comments
 (0)