I can't figure out why React is not updating the style on the Div as it's updating the style opacity with a timeout event.
import React from 'react'
function PortItem(props){
let style = {
opacity: 0
};
setTimeout(function(){style = {opacity: 1};},3000);
return(
<div className="portItem" style={style} onClick={()=>props.click(props.pitem.id)}>
<img src={props.pitem.src} alt={props.pitem.title}></img>
</div>
)
}
export default PortItem