File tree Expand file tree Collapse file tree 10 files changed +2347
-1532
lines changed
Expand file tree Collapse file tree 10 files changed +2347
-1532
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11import Flickity from '../src/index.js'
22import './App.css'
3+ import React from 'react'
34
45import Default from './Default.jsx'
56import Static from './Static.jsx'
Original file line number Diff line number Diff line change 1- import { useState } from 'react'
1+ import React , { useState } from 'react'
22import Flickity from '../src/index.js'
33import { images } from './images.js'
44
Original file line number Diff line number Diff line change 1- import { useState } from 'react'
1+ import React , { useState } from 'react'
22import Flickity from '../src/index.js'
33import { images } from './images.js'
44
Original file line number Diff line number Diff line change 55 < meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
66 < link rel ="stylesheet " href ="https://unpkg.com/flickity@2/dist/flickity.min.css ">
77 < title > React-Flickity-Component</ title >
8- < script type ="module " src ="/examples/ main.jsx "> </ script >
8+ < script type ="module " src ="main.jsx "> </ script >
99 </ head >
1010 < body >
11+ < div id ="root "> </ div >
1112 </ body >
1213</ html >
Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ import ReactDOM from 'react-dom/client'
33import App from './App'
44import './global.css'
55
6- ReactDOM . createRoot ( document . body ) . render (
6+ const domNode = document . getElementById ( 'root' ) ;
7+
8+ ReactDOM . createRoot ( domNode ) . render (
79 < React . StrictMode >
810 < App />
911 </ React . StrictMode > ,
Original file line number Diff line number Diff line change 1818 "scripts" : {
1919 "pretty" : " prettier --single-quote --trailing-comma es5 --write \" src/**/*.js\" \" examples/**/*.jsx\" " ,
2020 "test" : " vitest" ,
21- "dev" : " vite" ,
22- "build" : " node build.mjs " ,
23- "build:docs" : " node build- docs.mjs " ,
24- "prepublishOnly" : " node build.mjs "
21+ "dev" : " vite serve ./examples " ,
22+ "build" : " vite build" ,
23+ "build:docs" : " vite build --mode docs" ,
24+ "prepublishOnly" : " vite build"
2525 },
2626 "author" : " theolampert" ,
2727 "license" : " GPL3" ,
4646 "@testing-library/react" : " ^13.4.0" ,
4747 "@types/react" : " ^18.0.26" ,
4848 "@types/react-dom" : " ^18.0.9" ,
49- "@vitejs/plugin-react" : " ^3 .0.0" ,
49+ "@vitejs/plugin-react" : " ^4 .0.0" ,
5050 "flickity" : " ^2.2.1" ,
5151 "jsdom" : " ^20.0.3" ,
5252 "prettier" : " ^2.8.1" ,
5353 "react" : " ^18.2.0" ,
5454 "react-dom" : " ^18.2.0" ,
55- "vite" : " ^4 .0.0" ,
55+ "vite" : " ^6 .0.0" ,
5656 "vitest" : " ^0.25.7"
5757 },
5858 "peerDependencies" : {
You can’t perform that action at this time.
0 commit comments