fix react macro