INNER CODE UNIT · JavaScript

renderApp

Sandermoen/instaclone · client/src/components/App/App.js:88

  const renderApp = () => {
    // Wait for authentication
    if (!currentUser && token) {
      return <LoadingPage />;
    }
    return (
      <Fragment>
        {pathname !== '/login' && pathname !== '/signup' && <Header />}
        {renderModals()}
        {transitions.map(
          ({ item, props, key }) =>
            item && (
              <Alert key={key} style={props} onClick={alert.onClick}>
                {alert.text}
              </Alert>
            )
        )}
        <Switch>

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…