Skip to content

Commit 5b51bf9

Browse files
author
Kira
committed
docs: fix typo
1 parent 9867c25 commit 5b51bf9

File tree

2 files changed

+42
-42
lines changed

2 files changed

+42
-42
lines changed

README.md

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -14,80 +14,80 @@ NextJS and React Snippets with TypeScript support as well!🚀
1414

1515
### JavaScript
1616

17-
1. `rim` (Import React)
17+
1. `rir` (Import React)
1818

19-
```jsx
20-
import React from 'react';
21-
```
19+
```jsx
20+
import React from 'react';
21+
```
2222

2323
2. `rird` (Import ReactDOM)
2424

25-
```jsx
26-
import ReactDOM from 'react-dom';
27-
```
25+
```jsx
26+
import ReactDOM from 'react-dom';
27+
```
2828

2929
3. `rimrs` (Import React and useState)
3030

31-
```jsx
32-
import React, { useState } from 'react';
33-
```
31+
```jsx
32+
import React, { useState } from 'react';
33+
```
3434

3535
4. `rimrse` (Import React, useState and useEffect)
3636

37-
```jsx
38-
import React, { useState, useEffect} from 'react';
39-
```
37+
```jsx
38+
import React, { useState, useEffect} from 'react';
39+
```
4040

4141
5. `rfce` (React functional component)
4242

43-
```jsx
44-
const Component = () => {
45-
return <div></div>;
46-
}
47-
export default Component;
48-
```
43+
```jsx
44+
const Component = () => {
45+
return <div></div>;
46+
}
47+
export default Component;
48+
```
4949

5050
6. `rue` (React useEffect)
5151

52-
```jsx
53-
useEffect(() => {
54-
55-
}, []);
56-
```
52+
```jsx
53+
useEffect(() => {
54+
55+
}, []);
56+
```
5757

5858
7. `rus` (React useState)
5959

60-
```jsx
61-
const [state, setState] = useState(initialValue);
62-
```
60+
```jsx
61+
const [state, setState] = useState(initialValue);
62+
```
6363

6464
8. `ruc` (React useContext)
6565

66-
```jsx
67-
const value = useContext(myContext);
68-
```
66+
```jsx
67+
const value = useContext(myContext);
68+
```
6969

7070
9. `rur` (React useRef)
7171

72-
```jsx
73-
const refContainer = useRef(initialValue);
74-
```
72+
```jsx
73+
const refContainer = useRef(initialValue);
74+
```
7575

7676
### TypeScript
7777

7878
1. `rfcet` (React functional component Typescript)
7979

80-
```tsx
81-
import React from "react";
80+
```tsx
81+
import React from "react";
8282
83-
interface Props {}
83+
interface Props {}
8484
85-
function Component({}: Props) {
86-
return <div></div>;
87-
}
85+
function Component({}: Props) {
86+
return <div></div>;
87+
}
8888
89-
export default Component;
90-
```
89+
export default Component;
90+
```
9191

9292
## NextJS
9393

snippets/react-javascript.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"Import React": {
3-
"prefix": "rim",
3+
"prefix": "rir",
44
"body": ["import React from 'react';"],
55
"description": "Import React"
66
},

0 commit comments

Comments
 (0)