We have created SPFx with React project. We have used SPFx version 1.21.1
We have created one component to that project. Below is the code for the same,
import * as React from 'react'
const Administration = () => {
return (
<div>
<img src={require("../../webparts/contosoProject/assets/image/download.jpg")} />
</div>
)
}
export default Administration
We tried running gulp serve, but the image did not load. Please refer to the screenshot below for further clarification.
Can anyone help us with the same?
Thank you in Advance.
