html onclick go to top of page react code example Example: on click move item top react <ul> <li>one</li> <li>two</li> <li>three</li> </ul>