Posts by Paulo Robson • 7 points
3 posts
-
-1
votes1
answer71
viewsQ: Remove All from a list
My function of removing All is only removing the first Element that has been added to all. const handleRemoveItem = useCallback(() => { setTodos(todos.slice(todos.indexOf(+1))); }, [todos]);…
-
-2
votes2
answers335
viewsQ: Validate fields in React
I have some input fields, both are set to states. I would like to make sure that you only allow clicking on the button if these fields are filled in. Obs:. I am Using Hooks const [ name, setName ] =…
-
-2
votes1
answer33
viewsQ: Popup opening on every page after Load is finished, even after it is closed
I have a following situation: A Popup appears every time you finish a load on the page, the user can click X (close). But every time he enters another page the Popup goes up again and so it is…