I’m currently learning React inside of the Front End Libraries. At the first glance it sounded very nifty and i was able to follow along just fine until all of a sudden three or four challenges after one another start to add random things like super/constructor/render, classes extending other classes alongside extremely long paragraphs inside the challenges themselves with information I’m unable to properly understand.
Although I didn’t have to do anything with these variables and parameters according to the challenge, they have been there now for a couple of challenges straight and you might understand that this can be very daunting and confusing for someone who has never seen react before. It does fulfill a function in the end to render the code onscreen and if I don’t know what it does, how can I understand what I’m doing at all during the challenge? I hope you understand it makes the react curriculum very confusing at times.
I’ve got a couple of questions I would love for someone to answer before I feel confident to continue as I’m currently stuck in what I call the ‘nestception’ challenge in React:
-
Can someone please explain to me, what is the use of render/constructor/super and class A extends React.component in like a nutshell and what is the ‘boilerplate’ for these?
-
The curriculum compiles code for you, which is neat. However, when I try to code along in Visual Studio code nothing runs or is compiled in some way. How does this work in Code? I think it’s better if the curriculum would teach this first so you’re able to code along if you want to do experiment outside of the curriculum.
-
Can someone please explain the use of the ‘nest-ception’ challenge for me in https://www.freecodecamp.org/learn/front-end-development-libraries/react/use-react-to-render-nested-components as it nests things, but what is exactly the point as it just shows up as plain regular HTML? Why would I need to nest something inside a nest inside a nest and move fruits around?
-
Another question, but this is more SASS-related. The SASS curriculum only had 9 challenges or so. It literally came by and went within an hour for me. Is that all there’s to it to SASS? If not, why isn’t it included in the curriculum? If it is, why is it important to learn SASS at all since perhaps except one or two nifty features it barely adds anything at all?