metarhia / swayer

Schema based frontend framework 👀
MIT License
52 stars 11 forks source link

Add styles reflection #26

Open rohiievych opened 2 years ago

rohiievych commented 2 years ago

Is your feature request related to a problem? Please describe. We have to recreate the whole styled component in case of styles change.

Describe the solution you'd like Toggle styles without component recreation.

Describe alternatives you've considered Recreate the whole component.

Additional context Add this.toggleStyles() API method to switch initial styles.