How to implement login and logout with Facebook Login and ReactJS?
问题 I'm trying to use Facebook Login for users to log in and out of my web app using React and React-Router. I made a component which redirects a user on successful login, but I am not able to render the log out button on the new view. I am also new to React-Router so I'm not entirely sure if the problem is with my routes. Here's my code so far: login.js class Login extends React.Component{ constructor(props) { super(props); this.state = { loggedStatus: false, id : '' } } componentDidMount() {