Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

React emotion - CSS class execution in emotion

0 votes
14 views
added Jul 23 in React by lcjr Second Warrant Officer (6,120 points)
const listPrice = css`
  h4 {
    background: ${accentColor};
    color: #ffffff;
    border-radius: 5px;
    width: 147px;
    padding: 6px 13px;
  }
`;

<div css={listPrice}>
    <h4>{accounting.formatMoney(price, 'RM ', 0)}</h4>
</div>

 

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...