File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ In this guide, we'll show you a couple of different ways to get started with Spe
36
36
export default App ;
37
37
```
38
38
39
- ## Option Two: Using NextJS App Router to bootstrap a React-based Spectacle app
39
+ ## Option Two: Using Next.js App Router to bootstrap a React-based Spectacle app
40
40
41
- 1 . Spin up a new React project using [ ` vite ` ] ( https://vitejs.dev/guide/#scaffolding-your-first-vite-project ) :
41
+ 1 . Spin up a new React project using [ ` create-next-app ` ] ( https://nextjs.org/docs/pages/api-reference/create-next-app ) :
42
42
43
43
``` bash
44
44
npx create-next-app@latest
@@ -49,7 +49,7 @@ In this guide, we'll show you a couple of different ways to get started with Spe
49
49
3 . Create a ` deck.tsx ` file inside the ` app ` directory and add the following Spectacle starter:
50
50
51
51
``` tsx
52
- " use client" ;
52
+ ' use client' ;
53
53
54
54
import { Deck , Slide , Heading , DefaultTemplate } from ' spectacle' ;
55
55
@@ -64,15 +64,14 @@ In this guide, we'll show you a couple of different ways to get started with Spe
64
64
};
65
65
```
66
66
67
- 4 . In ` App .tsx` , import the ` <SpectacleDeck /> ` component:
67
+ 4 . In ` app/page .tsx` , import the ` <SpectacleDeck /> ` component:
68
68
69
69
``` tsx
70
- import { SpectacleDeck } from " ./deck" ;
70
+ import { SpectacleDeck } from ' ./deck' ;
71
71
72
72
export default function Home() {
73
73
return <SpectacleDeck />;
74
74
}
75
-
76
75
```
77
76
78
77
## Option Three: Using Markdown and the Spectacle CLI
You can’t perform that action at this time.
0 commit comments