You should avoid using any type in your React aplication. There is some tips to help you with it
What to do when your back-end not connect with your React Native app using your IP?
You did know about Axios.create? You can use in your site to boost your services to API