doc(ui): avoiding PropTypes (#14581)

This commit is contained in:
Aseem Bansal 2025-08-29 13:43:29 +05:30 committed by GitHub
parent ea0677b918
commit 131e1eef33
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -112,6 +112,7 @@ It also contains our style guide, which can be consumed by engineers.
- Alt text should be a required field
- How to do theming?
- Use `styled-components` theming, with stringed css rather than object css
- **React Components**: Use TypeScript interfaces for props instead of PropTypes (which are deprecated)
```jsx
// YES