Omar Shishani

React Lifecycle: Why componentDidMount() is great for a smooth API call

When you are buying groceries to make dinner, you can’t start preparing the ingredients – chopping the onions, washing the radishes – until you’ve paid for the groceries and driven home, can you? This wouldn’t make sense. Similarly, in React we can’t make modifications to a component until it has been mounted. This is where …

React Lifecycle: Why componentDidMount() is great for a smooth API call Read More »

Solving Path Problem – Running NPM modules/packages in Windows 10: NPM searching for module in wrong directory.

Computer looking to execute npm packages from wrong directory; Solved by adding\editing order of Windows environment variables in Control Panel. I spent a few hours trying to figure this out, but what it finally came down to was adding the path where the packages were being installed to the Windows PATH environment variable, and moving …

Solving Path Problem – Running NPM modules/packages in Windows 10: NPM searching for module in wrong directory. Read More »