Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
merisbahti committed Feb 28, 2024
1 parent 9b46396 commit 09ea2ef
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 36 deletions.
4 changes: 2 additions & 2 deletions examples/klyva-demo/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {
atom,
focusAtom,
RemovableAtom,
useAtom,
useAtomSlice,
} from '../../src/index'
useAtom,
} from '../../dist'

const myAtom = atom('hello')

Expand Down
32 changes: 19 additions & 13 deletions examples/klyva-demo/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -946,21 +946,27 @@
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.4.tgz#15925414e0ad2cd765bfef58842f7e26a7accb24"
integrity sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug==

"@types/react-dom@^16.8.4":
version "16.9.8"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-16.9.8.tgz#fe4c1e11dfc67155733dfa6aa65108b4971cb423"
integrity sha512-ykkPQ+5nFknnlU6lDd947WbQ6TE3NNzbQAkInC2EKY1qeYdTKp7onFusmYZb+ityzx2YviqT6BXSu+LyWWJwcA==
"@types/react-dom@^16.9.24":
version "16.9.24"
resolved "https://artifacts.apple.com/api/npm/npm-private/@types/react-dom/-/react-dom-16.9.24.tgz#4d193d7d011267fca842e8a10a2d738f92ec5c30"
integrity sha512-Gcmq2JTDheyWn/1eteqyzzWKSqDjYU6KYsIvH7thb7CR5OYInAWOX+7WnKf6PaU/cbdOc4szJItcDEJO7UGmfA==
dependencies:
"@types/react" "*"
"@types/react" "^16"

"@types/react@*", "@types/react@^16.9.11":
version "16.9.51"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.51.tgz#f8aa51ffa9996f1387f63686696d9b59713d2b60"
integrity sha512-lQa12IyO+DMlnSZ3+AGHRUiUcpK47aakMMoBG8f7HGxJT8Yfe+WE128HIXaHOHVPReAW0oDS3KAI0JI2DDe1PQ==
"@types/react@^16", "@types/react@^16.9.24":
version "16.14.57"
resolved "https://artifacts.apple.com/api/npm/npm-private/@types/react/-/react-16.14.57.tgz#7ad1024b6188497255f94f47e735e8203d30b752"
integrity sha512-fuNq/GV1a6GgqSuVuC457vYeTbm4E1CUBQVZwSPxqYnRhIzSXCJ1gGqyv+PKhqLyfbKCga9dXHJDzv+4XE41fw==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
csstype "^3.0.2"

"@types/scheduler@*":
version "0.16.8"
resolved "https://artifacts.apple.com/api/npm/npm-private/@types/scheduler/-/scheduler-0.16.8.tgz#ce5ace04cfeabe7ef87c0091e50752e36707deff"
integrity sha512-WZLiwShhwLRmeV6zH+GkbOFT6Z6VklCItrDioxUnv+u4Ll+8vKeFySoFyK/0ctcRpOmwAicELfmys1sDc/Rw+A==

abab@^2.0.0:
version "2.0.5"
resolved "https://registry.yarnpkg.com/abab/-/abab-2.0.5.tgz#c0b678fb32d60fc1219c784d6a826fe385aeb79a"
Expand Down Expand Up @@ -4976,10 +4982,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^3.4.5:
version "3.9.7"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.7.tgz#98d600a5ebdc38f40cb277522f12dc800e9e25fa"
integrity sha512-BLbiRkiBzAwsjut4x/dsibSTB6yWpwT5qWmC2OfuCg3GgVQCSgMs4vEctYPhsaGtd0AeuuHMkjZ2h2WG8MSzRw==
typescript@^4.6.3:
version "4.9.5"
resolved "https://artifacts.apple.com/api/npm/npm-private/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==

uncss@^0.17.3:
version "0.17.3"
Expand Down
4 changes: 2 additions & 2 deletions examples/mega-form/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
useAtomSlice,
useSelector,
} from '../../../dist/index'
import { createRoot } from 'react-dom/client'
import * as ReactDOM from 'react-dom'
import initialState from './initialState'
import './styles.css'

Expand Down Expand Up @@ -131,5 +131,5 @@ const App = () => {

const root = document.getElementById('root')
if (root) {
createRoot(root).render(<App />)
ReactDOM.render(<App />, root)
}
26 changes: 9 additions & 17 deletions examples/mega-form/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -946,25 +946,17 @@
resolved "https://registry.yarnpkg.com/@types/q/-/q-1.5.4.tgz#15925414e0ad2cd765bfef58842f7e26a7accb24"
integrity sha512-1HcDas8SEj4z1Wc696tH56G8OlRaH/sqZOynNNB+HF0WOeXPaxTtbYzJY2oEfiUxjSKjhCKr+MvR7dCHcEelug==

"@types/react-dom@^18.0.0":
version "18.0.0"
resolved "https://registry.yarnpkg.com/@types/react-dom/-/react-dom-18.0.0.tgz#b13f8d098e4b0c45df4f1ed123833143b0c71141"
integrity sha512-49897Y0UiCGmxZqpC8Blrf6meL8QUla6eb+BBhn69dTXlmuOlzkfr7HHY/O8J25e1lTUMs+YYxSlVDAaGHCOLg==
"@types/react-dom@^16.9.24":
version "16.9.24"
resolved "https://artifacts.apple.com/api/npm/npm-private/@types/react-dom/-/react-dom-16.9.24.tgz#4d193d7d011267fca842e8a10a2d738f92ec5c30"
integrity sha512-Gcmq2JTDheyWn/1eteqyzzWKSqDjYU6KYsIvH7thb7CR5OYInAWOX+7WnKf6PaU/cbdOc4szJItcDEJO7UGmfA==
dependencies:
"@types/react" "*"
"@types/react" "^16"

"@types/react@*":
version "16.9.51"
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.51.tgz#f8aa51ffa9996f1387f63686696d9b59713d2b60"
integrity sha512-lQa12IyO+DMlnSZ3+AGHRUiUcpK47aakMMoBG8f7HGxJT8Yfe+WE128HIXaHOHVPReAW0oDS3KAI0JI2DDe1PQ==
dependencies:
"@types/prop-types" "*"
csstype "^3.0.2"

"@types/react@^18.0.3":
version "18.0.3"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.3.tgz#baefa397561372015b9f8ba5bc83bc3f84ae8fcb"
integrity sha512-P8QUaMW4k+kH9aKNPl9b3XWcKMSSALYprLL8xpAMJOLUn3Pl6B+6nKC4F7dsk9oJPwkiRx+qlwhG/Zc1LxFVuQ==
"@types/react@^16", "@types/react@^16.9.24":
version "16.14.57"
resolved "https://artifacts.apple.com/api/npm/npm-private/@types/react/-/react-16.14.57.tgz#7ad1024b6188497255f94f47e735e8203d30b752"
integrity sha512-fuNq/GV1a6GgqSuVuC457vYeTbm4E1CUBQVZwSPxqYnRhIzSXCJ1gGqyv+PKhqLyfbKCga9dXHJDzv+4XE41fw==
dependencies:
"@types/prop-types" "*"
"@types/scheduler" "*"
Expand Down
4 changes: 2 additions & 2 deletions examples/react-derived-atoms/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react'
import 'todomvc-app-css/index.css'
import * as ReactDOMClient from 'react-dom/client'
import * as ReactDOM from 'react-dom'
import { atom, useAtom } from '../../src/index'

const count = atom(0)
Expand Down Expand Up @@ -28,5 +28,5 @@ const App = () => {

const root = document.getElementById('root')
if (root) {
ReactDOMClient.createRoot(root).render(<App />)
ReactDOM.render(<App />, root)
}

0 comments on commit 09ea2ef

Please sign in to comment.