Skip to content

Commit 0988818

Browse files
Merge pull request #14338 from MicrosoftDocs/main
Auto Publish – main to live - 2025-09-22 17:00 UTC
2 parents f0e4387 + 29aced7 commit 0988818

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/javascript/create-react-app.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,12 @@ Make sure to install the following:
4747
1. Open the `TodoList` component and replace the default content with the following:
4848

4949
```jsx
50-
export default function TodoList() {
50+
function TodoList() {
5151
return (
5252
<h2>TODO app contents</h2>
5353
);
5454
}
55+
export default TodoList;
5556
```
5657

5758
This component displays a header, which you will replace later.

0 commit comments

Comments
 (0)