react component get element by id code example demo

react component get element by id code example demo