Skip to main content

Introducing Workflow Engine, try for FREE workflowengine.io.

Function: reactStylesToCss()

reactStylesToCss(styles, selector?): string

Converts a React-style JS object to standard CSS string.

Parameters​

styles​

Record<string, number | string>

React inline style object.

selector?​

string

optional CSS selector to wrap the rules.

Returns​

string

CSS string.

Stay in the know
Quickly Build Drag-and-Drop Forms
Star us on GitHub