This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |