Using React to implement xtags