Php Use Variable In Callback In React