Shortened the code using ReactLink