V4/V3 introduced breaking changes and won't work with the current implementation logic (msalInstance could be initialized globally and then be exported to the axios base config. V3@react seems to use now hooks...
Check how to configure axios properly with the new approach...