MCPcopy
hub / github.com/Nealyang/React-Express-Blog-Demo / render

Method render

app/containers/index.js:44–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 };
43
44 render() {
45 let {isFetching} = this.props;
46 return (
47 <Router>
48 <div>
49 <Switch>
50 <Route path='/404' component={NotFound}/>
51 <Route path='/admin' component={Admin}/>
52 <Route component={Front}/>
53 </Switch>
54 {isFetching && <Loading/>}
55 {this.props.notification && this.props.notification.content ?
56 (this.props.notification.type === 1 ?
57 this.openNotification('success', this.props.notification.content) :
58 this.openNotification('error', this.props.notification.content)) :
59 null}
60 </div>
61 </Router>
62 )
63 }
64
65 componentDidMount() {
66 this.props.user_auth();

Callers

nothing calls this directly

Calls 1

openNotificationMethod · 0.95

Tested by

no test coverage detected