JavaScript React Basics (retired) First Steps in React Our First Application

Valeshan Naidoo
Valeshan Naidoo
27,004 Points

Takes a while to update...

I've correctly added in the code, there aren't any errors popping up but the latency when changing from the loading text to the updated text is a good 5 seconds, which seems ridiculous given that it was a simple text change. is this a browser compatibility issue (running safari) or what else could be the cause of this latency?

1 Answer

This is because Babel have to make the conversion from JSX to Javascript.

Valeshan Naidoo
Valeshan Naidoo
27,004 Points

But isn't a compiler used for every react website? Some react websites are super fast, and the instructional video doesn't show such bad latency.

Valeshan Naidoo it's different use babel in production, it's faster because it's done in a different way to the way it's done in the example, and about the instructional video this process is affected by your internet velocity.