33 |
34 |
35 | Welcome to React
36 |
37 |
{this.state.error}
38 | {this.state.isLoggedIn ? (
39 |
40 |
41 | Server test data:
42 |
43 | {this.state.data.map((item: App.Item, index) => (
44 | -
45 | name: {item.name} / value: {item.value}
46 |
47 | ))}
48 |
49 |
50 |
53 |
56 |
57 | ) : (
58 |
59 | (try the credentials: testuser@email.com / my-password)
60 | ) => this.setState({ email: e.target.value })}
65 | />
66 | ) => this.setState({ password: e.target.value })}
71 | />
72 |
75 |
76 | )}
77 |
78 | );
79 | }
80 |
81 | private handleLogin = async (): Promise