@@ -40,7 +40,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
40
40
41
41
### JavaScript
42
42
43
+ <<<<<< < HEAD
43
44
1. ` nssr` (Get Server Side Props Next .js )
45
+ ====== =
46
+ 1. ` nssr` (Next .js Get Server Side Props Typescript)
47
+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
44
48
45
49
` ` ` jsx
46
50
export const getServerSideProps = async (context) => {
@@ -50,7 +54,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
50
54
};
51
55
` ` `
52
56
57
+ <<<<<< < HEAD
53
58
2. ` nssg` (Get Static Props Next .js )
59
+ ====== =
60
+ 2. ` nssg` (Next .js Get Static Props Typescript)
61
+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
54
62
55
63
` ` ` jsx
56
64
export const getStaticProps = async (context) => {
@@ -62,15 +70,23 @@ NextJS and React Snippets with TypeScript support as well!🚀
62
70
63
71
### TypeScript
64
72
73
+ <<<<<< < HEAD
65
74
1. ` nssrt` (Get Server Side Props Next .js )
75
+ ====== =
76
+ 1. ` nssrt` (Next .js Get Server Side Props Typescript)
77
+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
66
78
67
79
` ` ` tsx
68
80
export const getServerSideProps: GetServerSideProps = async (context) => {
69
81
return { props: {} };
70
82
};
71
83
` ` `
72
84
85
+ <<<<<< < HEAD
73
86
2. ` nssgt` (Get Static Props Next .js )
87
+ ====== =
88
+ 2. ` nssgt` (Next .js Get Static Props Typescript)
89
+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
74
90
75
91
` ` ` tsx
76
92
export const getStaticProps: getStaticProps = async (context) => {
@@ -86,7 +102,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
86
102
};
87
103
` ` `
88
104
105
+ <<<<<< < HEAD
89
106
3 ) ` npaget` (NextPage component with NextPage type)
107
+ ====== =
108
+ 3 ) ` npt` (Next .js Page Typescript)
109
+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
90
110
91
111
` ` ` tsx
92
112
import type { NextPage } from "next";
@@ -96,7 +116,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
96
116
export default Page;
97
117
` ` `
98
118
119
+ <<<<<< < HEAD
99
120
4 ) ` nct` (Next JS Component with NextComponentType and Props)
121
+ ====== =
122
+ 4 ) ` nct` (Next .js Component Typescript)
123
+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
100
124
101
125
` ` ` tsx
102
126
import type { NextComponentType, NextPageContext } from "next";
0 commit comments