diff --git a/examples/async.ts b/examples/async.ts deleted file mode 100644 index 8b50b01..0000000 --- a/examples/async.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { atom } from "../src/async"; - -const test = async () => { - const atomTwo = await atom(0); - const atomThree = await atom(0); - - atomThree.subscribe((count) => { - atomTwo.set(count + atomTwo.get()); - console.log(count); - }); - - atomThree.set(1); - atomThree.set(1); - atomThree.set(1); - - console.log(atomThree.get()); - - console.log(atomTwo.get()); -}; - -test(); diff --git a/examples/example.ts b/examples/example.ts index e29ccce..17ae38c 100644 --- a/examples/example.ts +++ b/examples/example.ts @@ -1,5 +1,5 @@ import { link } from "fs"; -import { create, atom, AtomHook, useAtom, DerivedAtom } from "../src"; +import { create } from "../src"; interface Store { counter: number; diff --git a/examples/pokemon.ts b/examples/pokemon.ts index 6d25db9..93e4eb3 100644 --- a/examples/pokemon.ts +++ b/examples/pokemon.ts @@ -1,5 +1,4 @@ import { create } from "../src"; -import { useState } from "react"; interface PokemonTrainer { trainerName: string;