Added callback function on replaceProps in extern