Open CCleanerShot opened 8 months ago
As it stands, the project is utilizing 2 different ways to create an optional property:
1)
interface Props { name: string} const Test = ({name: ''}: Props) {}
2)
interface Props { name?: string} const Test = ({ name }: Props) {}
Subjective opinion aside, one should be swiftly decided on.
We should weigh in the pros and cons, I cannot comment on the difference as I do not know whats happening here, lets discuss this on Discord
As it stands, the project is utilizing 2 different ways to create an optional property:
1)
2)
Subjective opinion aside, one should be swiftly decided on.