We have a lot of code that repeats the creation of divs as buttons. This is just clunky as it requires re-defining classes each time, and in the case of button elements also calling e.preventDefault. Instead we should create a TSX folder for each of the different buttons. This will make things neater and have one location for us to change the look of the buttons.
We have a lot of code that repeats the creation of divs as buttons. This is just clunky as it requires re-defining classes each time, and in the case of button elements also calling e.preventDefault. Instead we should create a TSX folder for each of the different buttons. This will make things neater and have one location for us to change the look of the buttons.