Sign in

Follow JavaScript Essentials on Instagram to learn JS through snapshot of code snippets —

Because structuring an app is like building a house…

It’s the developer way of life 💻

Photo by Arnold Francisca on Unsplash
console.log(window);    // Window {...}

styled-components is an approach to writing CSS, in JavaScript. It has all the features which enhance the styling of React components

  • Automatic critical CSS — No unnecessary code on your page, only renders the CSS when the components are injected into a page
  • Dynamic styling — It adapts the styling of a component based on the props
  • Supports Global CSS
  • Supports Server Side Rendering (SSR)
  • Automatic vendor prefixes
  • Unique class names, that means no class names bugs

Not Knowing Everything Is Okay

Photo by Artem Sapegin on Unsplash

List of things I don’t know:

  • Unix commands and bash — I can manage with ls, cd and the world-famous rm -rf Can manage with grep but for everything else, I’ve to lookup.
  • CSS Methodologies — No BEMs, No OOCSS. I can do plain CSS. Currently using Tailwind CSS or styled-components. CSS-in-JS is the one I’m rocking now🤘
  • TypeScript — Type checking in JavaScript is not…

The useEffect hook lets you perform side effects in function components

Photo by SpaceX on Unsplash

Submit your work

How to write articles

  1. Reading time: minimum 3 minutes
  2. Add a cover image
  3. Title & Subtitle
  4. Emojis 🥳😂
  5. Recommend to use Grammarly.
  6. Tag: JavaScript Essentials

Add this image at the end of the article with the caption

Please follow on Instagram to learn JavaScript 💛 through a snapshot of code snippets




Why this?

Chetan Raj

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store