MWplease make sure all react code is in the function component.Comment·Article·Nov 29, 2022·How to use Axios with React.js