menu
up-caret
down-caret

Frontend Cafe

A community for discussing frontend engineering news, best practices, and new technologies.

# General

General Chatter

Trending conversations
Which Static Site Gen would you use to teach someone with little to no dev…
@ericwindmill · 13d
How to manage templates and variable interpolation in... Gmail?
@jportella93 · 5d
Rules for Autocomplete
@brian · 5d
Drawing lines between elements
@onion2k · 44d
Looking for ways to keep yourself updated
@ageblade · 7d

when we import a css in component, does the styles got recalculated when the component mounts?

Utkarsh Gupta (@utkarshg) · February 8, 2019 at 11:00am

when we import a css in component, does the styles got recalculated when the component mounts?

February 8, 2019 at 11:00am

February 8, 2019 at 12:00pm

@utkarshg Can you elaborate a bit on what you mean by "calculating styles"?

  • reply
  • like

February 13, 2019 at 10:26pm

@flexdinesh I think he means how performant it is? Basically, "are css styled re-computed and applied during each (re)render?"

like-fill
1
  • reply
  • like

February 15, 2019 at 6:02pm

You can't import css in JavaScript without a bundler, specify on what technology you work

  • reply
  • like