@@ -40,7 +40,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
4040
4141### JavaScript
4242
43+ <<<<<< < HEAD
43441. ` nssr` (Get Server Side Props Next .js )
45+ ====== =
46+ 1. ` nssr` (Next .js Get Server Side Props Typescript)
47+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
4448
4549 ` ` ` jsx
4650 export const getServerSideProps = async (context) => {
@@ -50,7 +54,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
5054 };
5155 ` ` `
5256
57+ <<<<<< < HEAD
53582. ` nssg` (Get Static Props Next .js )
59+ ====== =
60+ 2. ` nssg` (Next .js Get Static Props Typescript)
61+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
5462
5563 ` ` ` jsx
5664 export const getStaticProps = async (context) => {
@@ -62,15 +70,23 @@ NextJS and React Snippets with TypeScript support as well!🚀
6270
6371### TypeScript
6472
73+ <<<<<< < HEAD
65741. ` nssrt` (Get Server Side Props Next .js )
75+ ====== =
76+ 1. ` nssrt` (Next .js Get Server Side Props Typescript)
77+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
6678
6779 ` ` ` tsx
6880 export const getServerSideProps: GetServerSideProps = async (context) => {
6981 return { props: {} };
7082 };
7183 ` ` `
7284
85+ <<<<<< < HEAD
73862. ` nssgt` (Get Static Props Next .js )
87+ ====== =
88+ 2. ` nssgt` (Next .js Get Static Props Typescript)
89+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
7490
7591 ` ` ` tsx
7692 export const getStaticProps: getStaticProps = async (context) => {
@@ -86,7 +102,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
86102 };
87103 ` ` `
88104
105+ <<<<<< < HEAD
891063 ) ` npaget` (NextPage component with NextPage type)
107+ ====== =
108+ 3 ) ` npt` (Next .js Page Typescript)
109+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
90110
91111 ` ` ` tsx
92112 import type { NextPage } from "next";
@@ -96,7 +116,11 @@ NextJS and React Snippets with TypeScript support as well!🚀
96116 export default Page;
97117 ` ` `
98118
119+ <<<<<< < HEAD
991204 ) ` nct` (Next JS Component with NextComponentType and Props)
121+ ====== =
122+ 4 ) ` nct` (Next .js Component Typescript)
123+ >>>>>> > 5f7082e97c62b0d190ff1375a6a840db993a53c2
100124
101125 ` ` ` tsx
102126 import type { NextComponentType, NextPageContext } from "next";
0 commit comments