Working through a udemy course, feel totally stumped

Working through a udemy course, feel totally stumped
0

#1

So I am working through the Advanced Web Developer bootcamp over at Udemy, currently on the React parts. I feel that there is no explanation why he does things the way he does. Why does he structure components the way he does?


#2

Without seeing the code to which you are referring, we can not answer your question.

Have you gone through theReact portion of the Free Code Camp curriculum? Maybe it will help you better understand React.


#3

Sorry for my incoherent post. I am working through a tutorial for a simple match-2 game. And the instructor just states “and then I added this component to do this”, but he never mentions why he did it in that way or give any kind of high-level architecture view.


#4

Maybe he is following a style guide[0] or is only a convention (or best practice)?[1]

[0] https://github.com/airbnb/javascript/tree/master/react#basic-rules

[1]https://www.tutorialspoint.com/reactjs/reactjs_best_practices.htm

Cheers and happy coding :slightly_smiling_face: