Controls the display of parts of the referenced page

I would like to ask a question:
in the react project, I wrote a component, for example, the component has a header, content and tail, and now it is used in the three pages of a br, but the b page and the c page do not need the header of the component.
is there any way to make the header of the component not displayed when you use the component in the 2 pages of the bjingc?
wants to determine whether the header of the component is first through the routing method, but how to get the routing information of the c3 pages of a _
or is there any other way to determine the 2 pages in bmaine c so that the header of the component is not displayed?

Aug.27,2021

add a props to the component to control whether to render a part or not.

function Components({renderHeader}) {
    return(
        {
          renderHeader && <div> header </div>
        }
    )
}

about page routing? Does this mean https://developer.mozilla.org.

?

Why not consider splitting the component into three components called header body footer.

The

a b c page can decide which component to assemble by itself


I guess that the project of the landlord may be because:

header,content,footer

it's convenient to only care about the current content component when writing a page. It's convenient to Ok,. But once you encounter a situation where a page does not need footer, it naturally becomes gg.
the stupid way is:

 renderfooter
:
    main.jsx:
    render() {
        if(){
            return 
        }else {
            return 
        }
    }
That's all I can think of. Novice just use react, do not spray.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3798e-e5f7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3798e-e5f7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?