Skip to content

Commit

Permalink
Fixed examples to work on stackblitz (#1018)
Browse files Browse the repository at this point in the history
* changing the syntax highlighter to match react versions

* fixed broken examples

* removed prism dependency from example that wasn't using it

* removed react-prism from examples
  • Loading branch information
overthemike authored Dec 17, 2024
1 parent 84d109d commit 24753f6
Show file tree
Hide file tree
Showing 12 changed files with 4,513 additions and 18 deletions.
4 changes: 4 additions & 0 deletions examples/counter/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.0/styles/github-dark.min.css"
/>
<title>Vite + React + TS</title>
</head>
<body>
Expand Down
4 changes: 2 additions & 2 deletions examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"prismjs": "^1.23.0",
"highlight.js": "^11.11.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-prism": "^4.3.2",
"react-lowlight": "^3.0.1",
"valtio": "^2.1.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 24753f6

Please sign in to comment.