Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
VipulVW14 committed Nov 23, 2023
1 parent 52e61b2 commit d762867
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

4 changes: 2 additions & 2 deletions reconcilerForTodo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,15 @@ 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",
id: i + 1,
});
}
updateVirtualDom(todos);
}, 5000); // for pushing in batch
}, 1000); // for pushing in batch

window.setInterval(() => {
createDomElements();
Expand Down
File renamed without changes.

0 comments on commit d762867

Please sign in to comment.