score:1

<BrowserRouter>
  <Route path = "/home" exact component = {Home} />
  <Route path = "/forum" exact component = {Forum} />
  <Route path = "/forum/login" exact component = {Login} />
  <Route path = "/forum/register" exact component = {Register} />
</BrowserRouter>

Forum.js
import {Redirect} from 'react-router-dom';

class Forum extends Component{
  render(){
    return(
        <div className = "forumDiv">
            <div className = "forumBodyDiv">
                <div className = "forumLogoDiv">
                    <img
                        className = "lolLogoImg"
                        src= {LolLogo}
                        alt="cannot display" 
                    />
                </div>
                <ForumHeader />
                <ForumPage />
            </div>
        </div>
    )
  }
}

Related Query

More Query from same tag