I wanted to display some country list in React.js.
<select>
<option><img src={require('../images/flags/en.png')} /> English</option>
</select>
Path and require are definitely correct, if I put that image outside of select - it displays correctly
Firstly, it displayed [object Object] English instead of displaying flag image. There was also an error in console: index.js:1 Warning: Only strings and numbers are supported as children
I was looking for a solution using react-select but if it's achievable without that, I'd love to solve that using just plain tags.