In the following example the index.js calls the component DiffState.js which is supposed to wait for 2 seconds (to simulate an async operation) and then return an an H1 element