I have created a react app with protected route. Now App is on stage where I can not any strong change in it . The Thing is In my App.js component i have a condition
<div className="App">
{
(props.auth) ? <MainView /> : <Signin />
}
</div>
MainView component has all the routes written in it. And props.auth is redux state. This is working fine without any challenge. But now I want to use SignUp component which renders when or if user want to create-account.
But I mentioned My route is written in MainView component. So if I fill singup route I only see <SignIn> component because of the else condition in app.js. How can i Call <SignUp> component without changing more structure or in easier way.
To be more specific
<div className="App">
{
(props.auth) ? <MainView /> : <Signin /> || <SignUp /> //I want to render both of them if user not logged in. And they both are seperate component.
}
</div>