Javascript React Show Hide Two Elements Without Flickering On Page

Javascript React Show Hide Two Elements Without Flickering On Page