mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix: Remove unneeded else branches from documentation examples
This commit is contained in:
committed by
Dan Abramov
parent
a4b9abff42
commit
1e126c29dd
@@ -30,9 +30,8 @@ function Greeting(props) {
|
||||
const isLoggedIn = props.isLoggedIn;
|
||||
if (isLoggedIn) {
|
||||
return <UserGreeting />;
|
||||
} else {
|
||||
return <GuestGreeting />;
|
||||
}
|
||||
return <GuestGreeting />;
|
||||
}
|
||||
|
||||
ReactDOM.render(
|
||||
|
||||
Reference in New Issue
Block a user