Skip to content

[feature] Add useInterval Hook to @termuijs/jsx #3440

Description

@karthikj5453

Which package?

@termuijs/jsx

What happened?

@termuijs/jsx attempts to re-export useInterval in packages/jsx/src/index.ts from ./hooks.js. However, packages/jsx/src/hooks.ts does not contain an implementation or export for useInterval.

Importing useInterval directly from @termuijs/jsx fails at runtime/module-import with a missing export error.

Steps to reproduce

import { useInterval } from '@termuijs/jsx';

function TimerComponent() {
    useInterval(() => {
        console.log('tick');
    }, 1000);
    return null;
}


## GSSoC contributor?

- [x] Yes. You contribute under GSSoC 2026 and want to work on this.

Metadata

Metadata

Assignees

Labels

assignedIssue claimed by a contributor.type:feature+10 pts. New feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions