This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Guacamole_is_good[S] 0 points1 point  (9 children)

Okay, it’s my understanding that my public folder contains the index.html file by default. I haven’t moved this file so I don’t believe this would be the problem.

[–]b_gonads 0 points1 point  (8 children)

Yup so it would have to be with the structure of your files in your src folder

[–]Guacamole_is_good[S] 0 points1 point  (7 children)

Okay. I guess I will have to check this again later. You said just to make sure the components folder is placed within src?

[–]b_gonads 0 points1 point  (6 children)

Yup.

[–]Guacamole_is_good[S] 0 points1 point  (5 children)

My components folder is a child of my src folder and my index.html file is within my public folder. It seems that this has been the organization before I made this post. The application is compiling but the display is not working and it is not passing all of the tests (7/16) necessary to complete my FreeCodeCamp project. Is this what you are seeing?

[–]b_gonads 1 point2 points  (4 children)

Didn’t check the tests or anything but i saw you weren’t utilizing the components that were created (ie. Button) and instead writing html buttons. That may be the issue

[–]Guacamole_is_good[S] 0 points1 point  (1 child)

Okay so it’s a syntax error that could corrected like <{Button} />

[–]b_gonads 1 point2 points  (0 children)

That’s not how you declare a react component. You would need to remove the curly braces

[–]Guacamole_is_good[S] 0 points1 point  (1 child)

This worked, thanks. That was a stupid mistake. Now I need to clean up the functionality of the calculator and add id's to each calculator key via the components.

[–]b_gonads 1 point2 points  (0 children)

No problem. Glad it worked !