I have a local image that I want to put on my webpage built in react. I looked at this but it didn't help me. My code is as following:
const right={
float:"right",
fontSize:"18px"
}
export default class CloseUpCam extends Component {
render() {
return (
<div className="closeupcam" style={right}>
<div>CLOSEUP CAMERA</div>
<img src={require('./img/hand.png')} width="70" height="50" alt="cam"/>
</div>
)}}
There's no error messages. The picture just doesn't show up. Does anyone know what's wrong? Thanks.