Jul 21, 2017 · 1 min read
The baseUrl variable was passed from a script tag in my laravel blade file, to be accessed in my reactapp. It works in the version of laravel and react I wrote the article with. But for some reasons it doesn’t work on the latest react versions. I actually faced the issue on a new app I was working on recently. What I did was to hardcode the baseUrl in a config file, to be accessed in all through my react app
