Skip to content

Example

Consider the following source code:

const Component = () => {
return <div style={{ width: '50%', height: '50%' }} />
}

The plugin will automatically transform the div element into:

<div class="_div_12345"></div>

The generated _div_12345 class will contain the following CSS:

._div_12345 {
width: 50%;
height: 50%;
}