ijunseong

Update: render() 한줄로 수정

......@@ -13,7 +13,7 @@ class App extends React.Component {
isAuthenticated: false,
}
}
componentDidMount(props){
var urlQuery = url.parse(window.location.href).query;
var param = qs.parse(urlQuery);
......@@ -25,8 +25,7 @@ class App extends React.Component {
render(){
return (
<div className="app">
{!this.state.isAuthenticated && <Login />}
{this.state.isAuthenticated && <Body />}
{this.state.isAuthenticated?(<Body />):(<Login />)}
</div>
);
}
......