malfple / keyboard-layout-battles

GNU General Public License v3.0
5 stars 2 forks source link

FE: Refactor BattleInput component #16

Open malfple opened 5 months ago

malfple commented 5 months ago

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)