Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type definition best practice #16

Open
SOunit opened this issue Aug 15, 2021 · 0 comments
Open

type definition best practice #16

SOunit opened this issue Aug 15, 2021 · 0 comments
Assignees
Labels
help wanted Extra attention is needed

Comments

@SOunit
Copy link
Owner

SOunit commented Aug 15, 2021

file

SearchedItems.tsx

question

what is the best practice of

  • defining type Item?
  • name convention?

what is the difference of

  • type
  • interface
  • class

Max says all do same when creating type in react lecture.
but what is the difference?

answer?

defining model in typescript-react project by max in Udemy

class type can be instanciated.

next

check Typescript Udemy lecture by max

@SOunit SOunit added the help wanted Extra attention is needed label Aug 15, 2021
@SOunit SOunit self-assigned this Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant