![Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option> | bobbyhadz Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option> | bobbyhadz](https://bobbyhadz.com/images/blog/react-warning-use-the-defaultvalue-or-value-props-on-select/warning-user-the-defaultvalue-or-value-props-on-select.webp)
Warning: Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option> | bobbyhadz
![Whenever I pass onClick on a React Icon Component I get a typescript error - React - Code with Mosh Forum Whenever I pass onClick on a React Icon Component I get a typescript error - React - Code with Mosh Forum](https://global.discourse-cdn.com/business7/uploads/codewithmosh/original/2X/2/2c0e1122a4c0ba9d96ce84f285f7a7c5ed7ca9ef.png)
Whenever I pass onClick on a React Icon Component I get a typescript error - React - Code with Mosh Forum
![types/react] Type-checking for defaultProps · Issue #28515 · DefinitelyTyped/DefinitelyTyped · GitHub types/react] Type-checking for defaultProps · Issue #28515 · DefinitelyTyped/DefinitelyTyped · GitHub](https://user-images.githubusercontent.com/723547/44817089-22faae00-ab99-11e8-9004-3365ccf54432.png)
types/react] Type-checking for defaultProps · Issue #28515 · DefinitelyTyped/DefinitelyTyped · GitHub
![Jason Miller 🦊⚛ on X: "⚛️ Comparison of (p)react prop default techniques. I prefer defaultProps for static, in-render for dynamic 🤓 https://t.co/9tEkTt0VKh" / X Jason Miller 🦊⚛ on X: "⚛️ Comparison of (p)react prop default techniques. I prefer defaultProps for static, in-render for dynamic 🤓 https://t.co/9tEkTt0VKh" / X](https://pbs.twimg.com/media/C2TlFHhUcAA6Bmi.jpg)
Jason Miller 🦊⚛ on X: "⚛️ Comparison of (p)react prop default techniques. I prefer defaultProps for static, in-render for dynamic 🤓 https://t.co/9tEkTt0VKh" / X
![How to specify default value for props in React.js — Amit Merchant — A blog on PHP, JavaScript, and more How to specify default value for props in React.js — Amit Merchant — A blog on PHP, JavaScript, and more](https://www.amitmerchant.com/cdn/specifying-default-value-for-props-in-reactjs.png)