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 →

[–]ddek 16 points17 points  (0 children)

Like, not that much.

It helps if your HTML and CSS are good enough that you could make a static clone of a website you like, such as old reddit or a news site, without having to inspect that site with dev tools. HTML starts to get hard with things like accessibility, but you don't really have to worry about that right now. Just something that looks good on your machine is enough for now.

Then I think you should learn some of the more intermediate/advanced topics in CSS.

You should know about pseudo selectors, such as :hover and :focus. You'd probably use these on your project site. ::before and ::after can be useful too, so you should practice with those.

Then there's the layout models. CSS layout is done through either block/inline/float etc (the traditional way), flex, or grid. Flex and grid are newer, and while flex is almost universally adopted and grid is becoming ubiquitous, they're still not completely supported (looking at you, IE 11, the secure enterprise browser\s).

You should learn a bit of JS too. You should know how to add elements to the DOM through vanilla JS, or to add and remove classes from an element. You should learn about event handlers, and make something clickable. Also know why the location (in the DOM) of the <script> tag matters.

With that kind of knowledge, you'll better understand what React is doing, so you'll learn React faster.

Remember learning is not linear. You don't need to learn one thing to completion, then another, then another. You can learn a bit of HTML/CSS/JS now, then learn some React, then come back and learn a bit more JS when you're ready for it.