Skip to content
Discussion options

You must be logged in to vote

I feel that for your use case, a more natural abstraction is to have a state to represent the string value of the input box, and another state for the parsed number from the string state (you can use van.derive to achieve that). The width of the input box should depend on the string state, not the parsed number state.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by FlynnD273
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants