File tree Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Expand file tree Collapse file tree 3 files changed +41
-0
lines changed Original file line number Diff line number Diff line change 1+ .next
Original file line number Diff line number Diff line change 1+ {
2+ "scripts" : {
3+ "dev" : " next dev" ,
4+ "build" : " next build" ,
5+ "start" : " next start"
6+ },
7+ "dependencies" : {
8+ "html-react-parser" : " ../../" ,
9+ "next" : " ^10.0.0" ,
10+ "react" : " ^17.0.1" ,
11+ "react-dom" : " ^17.0.1"
12+ }
13+ }
Original file line number Diff line number Diff line change 1+ import Head from 'next/head' ;
2+ import parse from 'html-react-parser' ;
3+
4+ export default function Home ( ) {
5+ return (
6+ < div >
7+ < Head >
8+ < title > Create Next App</ title >
9+ </ Head >
10+
11+ < main >
12+ < h1 className = "title" >
13+ { parse ( `
14+ Welcome to <a href="https://nextjs.org">Next.js</a>
15+ and HTMLReactParser!
16+ ` ) }
17+ </ h1 >
18+ </ main >
19+
20+ < style jsx > { `
21+ .title {
22+ font-family: 'Lucida Grande';
23+ }
24+ ` } </ style >
25+ </ div >
26+ ) ;
27+ }
You can’t perform that action at this time.
0 commit comments