React - replaceProps added callback function