Skip to content

Commit

Permalink
[select] docs(Select2): fix typo in sample code (#5970)
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-kirsanov authored Feb 27, 2023
1 parent a838eb3 commit 7cf4bc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/select/src/components/select/select2.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ const FilmSelect: React.FC = () => {
);
};

ReactDOM.render(<FilmSelect /> document.querySelector("#root"));
ReactDOM.render(<FilmSelect />, document.querySelector("#root"));
```

In TypeScript, `Select2<T>` is a _generic component_ so you must define a local type that specifies `<T>`, the type of one item in `items`. The props on this local type will now operate on your data type so you can easily define handlers without transformation steps, but most props are required as a result.
Expand Down

1 comment on commit 7cf4bc3

@adidahiya
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[select] docs(Select2): fix typo in sample code (#5970)

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

Please sign in to comment.