I guess the syntax is fine so why is it telling me cannot change the style of null?
onClick={e=>e.target.lastChild.style.background = "black"}