Skip to content

Commit 09744c2

Browse files
committed
fix readme
1 parent fc8194f commit 09744c2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ class MyComponent extends React.Component {
4444
});
4545
}
4646
render() {
47-
<form>
48-
<label htmlFor="my-file-input">Upload a File:</label>
49-
<FileReaderInput as="binary" id="my-file-input"
50-
onChange={this.handleChange}>
51-
<button>Select a file!</button>
52-
</FileReaderInput>
53-
</form>
47+
return (
48+
<form>
49+
<label htmlFor="my-file-input">Upload a File:</label>
50+
<FileReaderInput as="binary" id="my-file-input"
51+
onChange={this.handleChange}>
52+
<button>Select a file!</button>
53+
</FileReaderInput>
54+
</form>
55+
);
5456
}
5557
}
5658
```

0 commit comments

Comments
 (0)