the react background image changes depending on the components I would like to know how to do that

  Kiến thức lập trình

I’m learning and I saw the tomorrowland site and I would like to reproduce it, only on the home page there is this background scrolling effect which changes depending on the component I don’t know how to code it and I need your help

import ‘./App.css’;
import Hero from ‘./components/hero/Hero’;

function App() {
return (