Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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

Valeshan Naidoo
Valeshan Naidoo
27,008 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,008 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.