Currently the component is coded in a very stateful way and the state flow is not very clear (a lot of adding classnames or changing styles manually). Instead, all states should be maintained as a variable and classnames or styles should not be modified in an imperative way but in a declarative way (classnames defined based on state on the view instead of the script)
Currently the component is coded in a very stateful way and the state flow is not very clear (a lot of adding classnames or changing styles manually). Instead, all states should be maintained as a variable and classnames or styles should not be modified in an imperative way but in a declarative way (classnames defined based on state on the view instead of the script)