Shortened teh code using ReactLink