Today I learned about how one can scope the css files of React components to the styling of only the components themselves using css modules. For example, App.css would contain styles only for App.js, Person.css, i.e., would only contain styles for Person.js, etc. I am using CRA for this project (for a change), and had to eject out of it in order to make the necessary changes in my CRA webpack.config.dev.js and webpack.config.prod.js files. The only other thing that needed to be done was to ... Continue Reading
scope
Falsy Bouncer
The Challenge: [crayon-5c7110f3452a2068994998/] The solution should return: [crayon-5c7110f3452ad759851227/] Some helpful links: Boolean Objects JavaScript Booleans Array.prototype.filter() Understanding Scope and Context in JavaScript You Don't Know JS: Scope & Closures You Don't Know JS: Async & Performance *Javascript closures function parameters? What my solution should achieve: Should remove all the falsy values from the provided array. Should take into account ... Continue Reading