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![](https://ecs-static.teamtreehouse.com/assets/views/marketing/shared/community-banner-white-47072046c51352fe6a69f5e691ff5700b28bb11d45197d7bdf066d9ea3f72d0c.webp)
![Erick Luna](https://secure.gravatar.com/avatar/a5ca075f9e749ba9775e033cd18e02ba?s=96&d=https%3A%2F%2Fecs-static.teamtreehouse.com%2Fassets%2Fcontent%2Fdefault_avatar-445fbbabfc8dc9188fb5967fe43322ee0c3e0dd1e10f378bf8343784af5a13eb.webp&r=pg)
Erick Luna
20,934 PointsError in console when I call render using JSX tag
When I call the root.render() method passing a JSX tag named as the arrow function (in this case <Header />) I see an error in the console like this: [vite] hmr invalidate /src/main.jsx Could not Fast Refresh. What could be the issue in this case? Thank you in advance for the help! :)
1 Answer
![Rohald van Merode](https://uploads.teamtreehouse.com/production/profile-photos/11666882/micro_Rohald-profile.jpg)
Rohald van Merode
Treehouse StaffHi Erick Luna 👋
This is not an error but a warning and is therefor safe to ignore, especially at this stage or the course 🙂 Along with the error there's a link where you can read more about Consistent Component Exports.
Basically what it means is that, in order for the HMR (Hot Module Reloading) to work you'll want your files to only export a React component. Behind the scenes Vite will then ensure that only that specific file is being reloaded instead of multiple files that haven't been edited. Making sure that the reloading of the app works as fast as possible and doesn't reload unedited things that were already loaded before. In this specific video there's no component being exported, which causes it to warn you about it not being able to "Fast Refresh".
Hope this clears things up! 🙂
Happy Coding! 🧑💻
Erick Luna
20,934 PointsErick Luna
20,934 PointsThis answer makes very clear what is happening, thank you Rohald van Merode !