Press ESC to close

can we call api ai compnentwillmount in react