Advanced React

Join the React Bootcamp

The React Bootcamp is 5 full weeks of professional React training to take you from wherever you are to top-tier React programmer in record time.

Lifetime Access

Complete Package

Scroll To Element

When the user clicks on the "Go to Pricing" button, make the page scroll down to the pricing section at the very bottom to make it easier for them to checkout.

Be sure to use a ref and use it to scroll to the bottom of the page, namely the pricing card.

This lesson is part of the full version of the React Bootcamp. Already joined? Log in here


Right now we're looking at a landing page. This consists of a hero section and a pricing section.

Maybe our user is looking up at the very top likes what we have to offer, and they want to jump to the pricing section here.

Another good use case for a ref is to be able to scroll to a given elemen...