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

Add state delegate for useState hook #156

Merged
merged 3 commits into from
Apr 4, 2020

Conversation

ilgonmic
Copy link
Contributor

@ilgonmic ilgonmic commented Apr 4, 2020

For using state hook with

var count by state(0)
count = count + 1

instead of

val (count, setCount) = useState(0)
setCount(count + 1)

@Leonya Leonya merged commit 70d8c0e into JetBrains:master Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants