[Typestyle] Load Raw CSS in Typestyle

Source: Internet
Author: User

Typestyle tries to be a all in one CSS in JS management solution so can always fall back to raw CSS if you ever need To migrate old code quickly. This lesson would demonstrate the function along with the real world use case of cssRaw CSS resets e.g. normalize.css

Import {Cssraw} from ' Typestyle ', import * as React from ' React ', import * as Reactdom from ' React-dom '; Cssraw ('    bod y {        font-size:1.5em;        Font-weight:bold;        Background-color:black;        Color:gold    } '); const APP = () = (    <Div>        Hello world!     </div>); Reactdom.render (    </>,    document.getElementById (' Root '));

[Typestyle] Load Raw CSS in Typestyle

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.