Answer the question
In order to leave comments, you need to log in
Why is the image not showing up?
import React from 'react'
import {render} from 'react-dom'
import './index.css'
class Header extends React.Component {
render() {
return <div>
<img className = "libr" src={a.Url} alt={a.name} />
<h1>Main</h1>
<h1>Forum</h1>
<h1>Biography</h1>
<h1>Sections</h1>
</div>
}
}
const a = {
name: "Library",
Url: "./libr.png"
}
render(
<Header/>,
document.getElementById('root')
)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question