Question:
hello i have a hook in app.js:inside the component i made 2 inputs that sent the value that written to 2 hooks and a button, i wand the validation to happen when im clicking on the button (onClick). and return the index of the object that holds ths given name adn password so i can pass it to the customer page/component. thank you.
singin component:
Answer:
Just find with the set values if it exists or not in your arrayIf you have better answer, please add a comment about this, thank you!