How to use react for frontend, where some pages are public and some pages needs authentication

I am building a market place, there will be a landing page, products list page and other pages. so landing page should be accessible for all and all other pages should be authentication based.
Authentication should be OTP based. so how can i build it in frappe