I am trying to get this var li = ul.getElementsByTagName('li');
to work in React however it is returning null as I guess the dom hasn't fully loaded. so Im looking for the reacty way to do this or a way to not get it to run until the dom has loaded
↧
React equivalent of getElementsByTagName
↧