mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-11-03 20:27:50 +00:00 
			
		
		
		
	doc(ui): avoiding PropTypes (#14581)
This commit is contained in:
		
							parent
							
								
									ea0677b918
								
							
						
					
					
						commit
						131e1eef33
					
				@ -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
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user