Passing Ref through React Router To the Components?

I Have a following Setup

<Overview>
    <div className={styles.container}>
      <HeaderComponent/>
      <SecondaryHeader section={this.state.section} ref = {myref}/> // this ref how do i pass it to all the child components which are in routes
    </div>
    <div>
        <Routes fullScreenCB = {this.goToFullScreen}/>
    </div>
    <NetworkCheck/>
  </div>
</Overview>


const Routes = ({fullScreenCB}: IRouteProps) : React.ReactElement<IRouteProps> => {
      <Route exact path="/" component={withAuth(Home)} />
      <Route exact path="/about" component={withAuth(About)} />
      <Route exact path="/topics" component={withAuth(Topics)} />

})


myProtected Route HOC



export default (ProtectedRoute, fullScreenCB) => {


  class WrapperClass extends React.Component<any, {}> {
    constructor(props) {
      super(props);
      this.state = {
        isAuthenticated: process.env.NODE_ENV === "development" ? true : false
      };
    }

    render() {
      if (this.state.isLoading) {
        return (
          <div style={{width: "100%", height: "100%"}}>
              <CircularProgress style={{left: "50%", marginTop: "30%"}} size={"xlarge"}/>
          </div>
        )
      } else if (this.state.isAuthenticated) {
        let {forwardedRef, ...rest } = this.props;
        rest = {...rest, fullScreenCB};
        return (
          <ProtectedRoute
            ref={forwardedRef}
            {...rest}
          />
        )
      }
    }
  }

  let WrappedComponent = React.forwardRef(
    function withAuthorizationWarpper(props, ref) {
      return <WrapperClass {...props} forwardedRef={ref}/>;
    }
  );

  hoistNonReactStatic(WrappedComponent, ProtectedRoute);

  return WrappedComponent;
}

How do i pass the Ref of the Secondary Header to the Child Routes i tried forwarding Routes but to no avail. I am a bit confused in the concept. I know how to pass it form direct parent to child https://www.javascriptstuff.com/use-refs-not-ids/

But when routes come to picture i am a bit confused

Source: ReactJs