Skip to content

Commit

Permalink
Fix imports in README
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjwest committed Feb 11, 2023
1 parent 1caa4d0 commit e0b3e09
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ You can write this:
<!-- snippet: tsx,jsx -->
```tsx
import React from 'react';
import { expandClasses } from 'react-bem-classes';
import { expandClasses } from '@peterjwest/react-bem-classes';

class Component extends React.Component {
render() {
Expand Down Expand Up @@ -60,7 +60,7 @@ If you want to use the original BEM style you can:
<!-- snippet: tsx,jsx -->
```tsx
import React from 'react';
import { expandClasses } from 'react-bem-classes';
import { expandClasses } from '@peterjwest/react-bem-classes';

const expandClassesClassic = (input) => expandClasses(input, { element: '__', modifier: '--' });

Expand All @@ -84,7 +84,7 @@ You can also change the selector character:
<!-- snippet: tsx,jsx -->
```tsx
import React from 'react';
import { expandClasses } from 'react-bem-classes';
import { expandClasses } from '@peterjwest/react-bem-classes';

class Component extends React.Component {
render() {
Expand All @@ -106,7 +106,7 @@ If you're using Typescript, you can instead use the decorator:
<!-- snippet: tsx -->
```tsx
import React from 'react';
import expandClasses from 'react-bem-classes';
import expandClasses from '@peterjwest/react-bem-classes';

class Component extends React.Component {
@expandClasses({ selector: '%' })
Expand All @@ -129,7 +129,7 @@ You can also use the utility with CommonJS and without JSX support:
<!-- snippet: cjs -->
```js
const { createElement, Component } = require('react');
const { expandClasses } = require('react-bem-classes');
const { expandClasses } = require('@peterjwest/react-bem-classes');

class SomeComponent extends Component {
render() {
Expand Down

0 comments on commit e0b3e09

Please sign in to comment.