Skip to content

Commit 7f41dd0

Browse files
authored
Remove semicolon to match the style
1 parent 4e92c25 commit 7f41dd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/1/en/part1c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ const Button = ({ onClick, text }) => (
740740
Or, similar to the Display example, you can further optimize the Button component to a single line by removing the parentheses and formatting it as follows:
741741
742742
```js
743-
const Button = ({ onClick, text }) => <button onClick={onClick}>{text}</button>;
743+
const Button = ({ onClick, text }) => <button onClick={onClick}>{text}</button>
744744
```
745745
746746
This approach works because the component contains only a single return statement, making it possible to use the concise arrow function syntax.

0 commit comments

Comments
 (0)