Skip to content

Commit

Permalink
fix(docs): add labels to first relevant example (gatsbyjs#14573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcy Sutton authored Jun 6, 2019
1 parent d75eab2 commit b1a6d96
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/docs/adding-forms.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ export default class IndexPage extends React.Component {
render() {
return (
<form>
<input type="text" name="firstName" />
<input type="text" name="lastName" />
<label>
First name
<input type="text" name="firstName" />
</label>
<label>
Last name
<input type="text" name="lastName" />
</label>
<button type="submit">Submit</button>
</form>
)
Expand Down

0 comments on commit b1a6d96

Please sign in to comment.