pull/17/head
Asabeneh 4 years ago
parent 7264e78f8b
commit 105c72763f

@ -470,7 +470,7 @@ const hexaColor = () => {
return '#' + color
}
const HexaColor = () => <div>{hexaColor()}</dv>
const HexaColor = () => <div>{hexaColor()}</div>
const rootElement = document.getElementById('root')
// we render the JSX element using the ReactDOM package

@ -14,7 +14,7 @@ const hexaColor = () => {
}
const HexaColor = () => {
let bgColor = hexaColor()
const bgColor = hexaColor()
const styles = {
height: '100px',
display: 'flex',
@ -62,7 +62,7 @@ const TechList = () => {
}
const buttonStyles = {
padding: '10px 20px',
background: 'rgb(0, 255, 0',
background: 'rgb(0, 255, 0)',
border: 'none',
borderRadius: 5,
}
@ -79,6 +79,8 @@ const Main = () => (
</ul>
<UserCard />
<div>
{/* Generate two different hexa colors every time */}
<HexaColor />
<HexaColor />
</div>
</div>

Loading…
Cancel
Save