Today I learned
Jan 24, 2022
--
while using .src can be an option, it isn’t really a functional one for grabbing something from the component. I use relative paths for the initial link but the output on firefox is the absolute path making matching difficult
Also, keyof typeof is the best way to make sure something is of the type options to the key of a specific enum
let newFirst = event.currentTarget.id as keyof typeof ElementalColors;