Skip to content

Commit

Permalink
docs: update hook example
Browse files Browse the repository at this point in the history
<!-- SKIP CI -->
  • Loading branch information
rafegoldberg authored Dec 27, 2021
1 parent 611a485 commit 2949830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ import { useClassy } from 'use-classy';
import classes from './style.module.scss';

const MyElement = ({ title, className }) => {
const bem = useClassy(classes, 'MyElement');
const bem = useClassy('MyElement', classes);
return (
<header className={bem('&', className)}>
<h2 className={bem('-title')}>{title}</h2>
Expand Down

0 comments on commit 2949830

Please sign in to comment.