Hello everyone, given a condition, if it is true, how is it possible to load a specific url?
const completarRegistro =()=>{
if(codigo===codigo_agregado){
/ *
Here I must load a specific url.
In the buttons href = "/ url" is used
And what can I use here? * /
}
else{
setCount(6);
}
}
Thanks in advance.
1 post - 1 participant