i tried to replicate a solution from freecodecamp but, its not displaying what it should
Whenever you have issues, check your browser console.
Just change the order that you’re loading your resources, then use ReactDOM to load your first component.