diff --git a/README.md b/README.md index 114f9ed..ce929f2 100644 --- a/README.md +++ b/README.md @@ -18,12 +18,13 @@ A "reconciler" refers to a component responsible for managing the process of upd To modify the reconciler or add new features, follow these steps: -1. Make changes to the `reconciler.ts` file. -2. Compile the TypeScript code to JavaScript: +1. Clone the repository. +2. Make changes to the `reconcilerForTodo.ts` file. +3. Compile the TypeScript code to JavaScript: ```bash - tsc reconciler.ts + tsc reconcilerForTodo.ts ``` -3. Open `index.html` in your browser to see the updated reconciler in action. +4. Open `dist/index.html` in your browser to see the updated reconciler in action. \ No newline at end of file diff --git a/reconcilerForTodo.ts b/reconcilerForTodo.ts index f3b51df..272b432 100644 --- a/reconcilerForTodo.ts +++ b/reconcilerForTodo.ts @@ -86,7 +86,7 @@ function updateVirtualDom(data: { title: string; description: string; id: number window.setInterval(() => { const todos: { title: string; description: string; id: number }[] = []; - for (let i = 0; i < Math.floor(Math.random() * 100); i++) { + for (let i = 0; i < Math.floor(Math.random() * 169); i++) { todos.push({ title: "Go to gym -", description: " Hit chest today", @@ -94,7 +94,7 @@ window.setInterval(() => { }); } updateVirtualDom(todos); -}, 5000); // for pushing in batch +}, 1000); // for pushing in batch window.setInterval(() => { createDomElements(); diff --git a/recon.html b/todo.html similarity index 100% rename from recon.html rename to todo.html