Become a member
to unlock all features

    Animate a Universal React Loading Component using Delay Options and Component Hooks


    If you’d like to perform an animation while a component is loading you can achieve this by setting a minimum delay and forcing it to always happen. You can then use the onBefore and onAfter hooks on the component to set some local state within your parent component. This local state can be used to trigger the animation.