Kanika637 / amazon-clone

Clone of Amazon Website
MIT License
89 stars 100 forks source link

#105-'change class'_to_'className'_in_Navbar.js_and_AllCategories.js #130

Closed RutamBhagat closed 1 year ago

RutamBhagat commented 1 year ago

Screenshot from 2022-10-20 09-37-00

105-'change class to className in Navbar.js and AllCategories.js

RutamBhagat commented 1 year ago

please review

Kanika637 commented 1 year ago

Hey @RutamBhagat, can you show some proof of work like screenshots of how this change of code has enhanced the project in a way?

RutamBhagat commented 1 year ago

Screenshot (22) @Kanika637 JSX is actually javascript and "class" is a reserved keyword in javascript, so by using "className" instead of "class" it removes the syntax error in console. Please let me know if i am missing something here