Skip to content

Instantly share code, notes, and snippets.

// Version 1 - Store raw css values
// Pros:
// - more backwards compatible
// - more human readable
// - more easily used by external libraries/apps/etc.
// Cons:
// - parsing function is more complex than build function
// - requires two-way transform
// - state differs in different components (editor v.s. parent component)
// - impossible to directly link state