How can i optimize these repetitive if with queryselectors inside?
i need to simplify these lines of code of react, i see is a bit repetitive, but i dont know if theres any way to improve this
Any idea will be received!!!
i need to simplify these lines of code of react, i see is a bit repetitive, but i dont know if theres any way to improve this
Any idea will be received!!!