DEV Community


Discussion on: Quick and Easy Load Spinner Tutorial for React with Hooks

callum09 profile image
Callum Oberholzer

Hi Jess, thanks for the tutorial. I'm building some buttons for my component library, and am trying to allow the button to still trigger it's primary function while changing the state. IE activate loading state and then navigate to the href. Any thoughts? Currently thinking of persuing a similar methodoly used here (preventing default, doing work, and then triggering default once work is complete), but without jquery: