Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working for React JS ? #38

Open
4N1Z opened this issue Jan 2, 2023 · 2 comments
Open

Not working for React JS ? #38

4N1Z opened this issue Jan 2, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@4N1Z
Copy link

4N1Z commented Jan 2, 2023

Don't know the issue, but it is not working for React JS. Don't know the reason

@srexi
Copy link
Owner

srexi commented Jan 2, 2023

It's vanilla js, which means you can implement it in js without too many troubles :)
But there's not a plug-and-play solution for angular/react/vue yet.

@srexi srexi added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Jan 2, 2023
@p0zi
Copy link

p0zi commented Jul 11, 2024

`
const pure = React.useRef(null);

React.useEffect(() => {
    (async () => {
        // Dynamically load Isotope
        const PureCounter = (await import('@srexi/purecounterjs')).default;

        pure.current = new PureCounter(); // const pure = new PureCounter();
    })();

    // cleanup
    // return () => pure.current?.destroy();
}, []);

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants