Can I set up a state only if a certain prop provided? Something like this:
function Comp({scroll, children}) { const [scrollY, setScrollY] = useState(0);