Top Loading Bar Demo
Using ref
Using state