Skip to main content

Introduction

react-append-styles - a small library for working with css in js.

npm size npm size npm react version

Functional

  • generating styles based on a css object;
  • adding a unique postfix to the generated classes;
  • adding/updating the received styles to the head and deleting them when unmounting the component;
  • creating themes and using them when generating styles;
  • support for cssVar, @media and dynamic props.

Recommendations

It can be used as an auxiliary library if:

  • css is chosen as the main approach to styling;
  • there is a need to redefine several styles from js through classes.
warning

The library has basic functionality for creating themes, but this functionality will not be expanded in the future. If you need advanced theme creation capabilities, then you can use more powerful (and heavy) libraries. For example: