Hot answers tagged

3 votes

Revealing store sales based on time

Because of the way that if-else statements work, you can eliminate redundancies. Here's the code cut up some to focus on just the if-else statements: ...
user avatar
  • 131
2 votes

Revealing store sales based on time

Use UTC Time to avoid timezone issues People in different timezones will see different values for the current date and hour in JavaScript even when viewing the web page simultaneously. This is ...
user avatar
  • 1,318
2 votes

Simple SASS & BEM module for social feed widgets

I've reviewed your code and I can make the following remarks: While I like the BEM methodology, its not a panacea especially following it to the letter. You must seek simplicity to your code even if ...
user avatar
2 votes

Flexbox & BEM 'table'

I can't say much for flexbox, I haven't played with it. The React part is to sparse as well. However, general CSS I can do. ...
user avatar
  • 24.8k
2 votes
Accepted

Modular, conflict free, BEM-style CSS

What happens if one of your slides is itself a block that contains an image, such as an article. Consider this markup: ...
user avatar
2 votes

Revealing store sales based on time

You may use loops to avoid duplication, like: ...
user avatar
  • 27.2k
2 votes

CSS organization with BEM

Well, if you are using Bootstrap, you should not alter the classes that Framework is using, like navabar for example. The basic with BEM is that you should chain ...
user avatar
1 vote

CSS and React.js for a basic navigation drawer

Congratulations on getting a react app to work. That is no small feat. Also nice use of static state and using a function to change state. I recommend you read thinking in react. Controls are the ...
user avatar
1 vote
Accepted

Simple SASS & BEM module for social feed widgets

Thinking in re-usable modules you would like to keep things simple and as general as possible with naming. IMO your version of BEM is to specific. I'll try my best to get my point across and guide you....
user avatar
  • 196
1 vote

BEM email structure

One of the most fundamentally useful things about BEM is the flattening of modules to make them independent of structure. It's always a problem in css to make the selectors follow the HTML structure, ...
user avatar
1 vote

Shopping Cart with React JS

First things First I cloned it and run it as you wrote in README.md file, As a frontend project it'll be better if you used something like npm to run your project. ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible