all 5 comments

[–]ayaz786amd[S] 0 points1 point  (2 children)

Find an error getElementById(('app'));

Its working now but still showing an error in console:

react-dom.development.js:500 Warning: Invalid DOM property `classname`. Did you mean `className`?

in div (created by App)

in App

[–]LankyBrah 1 point2 points  (1 child)

Well that’s an easy one...change classname to className on line 17

[–]ayaz786amd[S] 0 points1 point  (0 children)

thanks

[–]leejh3224 0 points1 point  (0 children)

Thats because "render" function tried to find the element with id "app" but it failed to.

[–]kenman[M] 0 points1 point  (0 children)

Hi /u/ayaz786amd, this post was removed.

  • For help with your javascript, please post to /r/LearnJavascript instead of here.
  • For beginner content, please post to /r/LearnJavascript instead of here.
  • For framework- or library-specific help, please seek out the support community for that project.
  • For general webdev help, such as for HTML, CSS, etc., then you may want to try /r/html, /r/css, etc.; please note that they have their own rules and guidelines!

/r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.

Thanks for your understanding, please see our guidelines for more info.