Good practice to make AJAX calls in a component, outside of Action Creators?

时间:2017-04-09 23:56:23

标签: reactjs redux react-redux

I want to make an AJAX call that uploads an image and returns the URL. I don't want/need it to interact with redux's global state. Is it good practice to make the call inside the component?

I'll be uploading multiple images and I don't need the returning URLs to be globally accessible. Should I just follow convention and figure out a way to implement what I want, with AJAX calls only in the action creators?

0 个答案:

没有答案
相关问题