Skip to content

Commit e9f853e

Browse files
authored
ControlLabel -> FormLabel
react-bootstrap renamed ControlLabel recently
1 parent 5bbed88 commit e9f853e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_chapters/create-a-login-page.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ So let's start by creating the basic form that'll take the user's email (as thei
1818

1919
``` coffee
2020
import React, { useState } from "react";
21-
import { Button, FormGroup, FormControl, ControlLabel } from "react-bootstrap";
21+
import { Button, FormGroup, FormControl, FormLabel } from "react-bootstrap";
2222
import "./Login.css";
2323

2424
export default function Login(props) {
@@ -37,7 +37,7 @@ export default function Login(props) {
3737
<div className="Login">
3838
<form onSubmit={handleSubmit}>
3939
<FormGroup controlId="email" bsSize="large">
40-
<ControlLabel>Email</ControlLabel>
40+
<FormLabel>Email</FormLabel>
4141
<FormControl
4242
autoFocus
4343
type="email"
@@ -46,7 +46,7 @@ export default function Login(props) {
4646
/>
4747
</FormGroup>
4848
<FormGroup controlId="password" bsSize="large">
49-
<ControlLabel>Password</ControlLabel>
49+
<FormLabel>Password</FormLabel>
5050
<FormControl
5151
value={password}
5252
onChange={e => setPassword(e.target.value)}

0 commit comments

Comments
 (0)