Answers for "react access scss variables"

CSS
1

react access scss variables

const appBarElement = document.querySelector('.appBar');
if (appBarElement) {
  const style = window.getComputedStyle(appBarElement);
  const position = style.getPropertyValue('position');
  console.log(position);
}
Posted by: Guest on July-16-2021

Browse Popular Code Answers by Language