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

Use state #14

Closed
wants to merge 1 commit into from
Closed

Use state #14

wants to merge 1 commit into from

Conversation

Vitaminvp
Copy link
Collaborator

@Vitaminvp Vitaminvp commented Mar 22, 2021

Add hook.js
Change export from framework like React

import Framework, {useState} from './framework'

Hooks state placed in current object.
Create render function to hide render logic from user.
To re-render use setInterval but possible to use requestIdleCallback

@Vitaminvp Vitaminvp changed the base branch from dev to jsx March 22, 2021 11:17
@Vitaminvp Vitaminvp added the enhancement New feature or request label Mar 22, 2021
@OleksiyRudenko OleksiyRudenko linked an issue Mar 29, 2021 that may be closed by this pull request
@mykyta-shulipa
Copy link
Collaborator

Seems it's not relevant anymore, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add hooks and event handling (v1.3)
2 participants