1- import { useEffect , useRef } from ' react'
2- import Reveal from ' reveal.js'
3- import Highlight from ' reveal.js/plugin/highlight/highlight'
4- import Notes from ' reveal.js/plugin/notes/notes'
5- import ' reveal.js/dist/reveal.css'
6- import ' ./styles/index.scss'
7- import Splash from ' ./slides/splash'
8- import Agenda202504 from ' ./slides/agenda-2025-04'
9- import Thanks from ' ./slides/thanks'
1+ import { useEffect , useRef } from " react" ;
2+ import Reveal from " reveal.js" ;
3+ import Highlight from " reveal.js/plugin/highlight/highlight" ;
4+ import Notes from " reveal.js/plugin/notes/notes" ;
5+ import " reveal.js/dist/reveal.css" ;
6+ import " ./styles/index.scss" ;
7+ import Splash from " ./slides/splash" ;
8+ import Agenda202505 from " ./slides/agenda-2025-05" ;
9+ import Thanks from " ./slides/thanks" ;
1010
1111function App ( ) {
12- const deckDivRef = useRef < HTMLDivElement > ( null ) // reference to deck container div
13- const deckRef = useRef < Reveal . Api | null > ( null ) // reference to deck reveal instance
12+ const deckDivRef = useRef < HTMLDivElement > ( null ) ; // reference to deck container div
13+ const deckRef = useRef < Reveal . Api | null > ( null ) ; // reference to deck reveal instance
1414
1515 useEffect ( ( ) => {
1616 // Prevents double initialization in strict mode
17- if ( deckRef . current ) return
17+ if ( deckRef . current ) return ;
1818
1919 deckRef . current = new Reveal ( deckDivRef . current ! , {
20- transition : ' slide' ,
20+ transition : " slide" ,
2121 // other config options
22- } )
22+ } ) ;
2323
2424 deckRef . current
2525 . initialize ( {
@@ -28,29 +28,29 @@ function App() {
2828 } )
2929 . then ( ( ) => {
3030 // good place for event handlers and plugin setups
31- } )
31+ } ) ;
3232
3333 return ( ) => {
3434 try {
3535 if ( deckRef . current ) {
36- deckRef . current . destroy ( )
37- deckRef . current = null
36+ deckRef . current . destroy ( ) ;
37+ deckRef . current = null ;
3838 }
3939 } catch ( e ) {
40- console . warn ( ' Reveal.js destroy call failed.' )
40+ console . warn ( " Reveal.js destroy call failed." ) ;
4141 }
42- }
43- } , [ ] )
42+ } ;
43+ } , [ ] ) ;
4444
4545 return (
4646 < div className = "reveal" ref = { deckDivRef } >
4747 < div className = "slides" >
4848 < Splash />
49- < Agenda202504 />
49+ < Agenda202505 />
5050 < Thanks />
5151 </ div >
5252 </ div >
53- )
53+ ) ;
5454}
5555
56- export default App
56+ export default App ;
0 commit comments