0.0.4 • Published 2 years ago

react-use-estyles v0.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Adding useEStyles hook for Material UI Emotion V5

Repository Version License: MIT Build Status

Motivation

Material UI v5 is moving away from JSS in favor of Emotion. This hook allows users keep creating JSS based styling by using Emotion under the 🪝.

Install

npm i react-use-estyles

Usage

import React from "react";
import { useEStyles } from "react-use-estyles";

const styles = (theme) => ({
  root: {
    color: theme.palette.primary.main
  }
});


const ComponentWithStyles = () => {
  const classes = useStyles(styles);

  return <div className={classes.root}/>;
}
0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago

1.0.0

2 years ago