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 trialValeshan Naidoo
27,008 PointsTakes 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
carlossz
4,220 PointsThis is because Babel have to make the conversion from JSX to Javascript.
Valeshan Naidoo
27,008 PointsValeshan Naidoo
27,008 PointsBut 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.
carlossz
4,220 Pointscarlossz
4,220 PointsValeshan 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.