Skip to content

Commit f921e45

Browse files
committed
README updates
1 parent 6a66082 commit f921e45

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
A library to load and tree shake standard CSS with a simple, flexible interface allowing you to only load the CSS you need and want, dependent on if your react components are rendering.
33

44
## Getting started
5-
To install run `npm install react-css-loader --save`
5+
To install run `npm install @mintuz/react-css-loader --save`
66

77
## Usage
88

99
### Client
10-
React CSS Loader provides a Higher Order Component which you pass your own components into and optionally an object as a second paramter with a function called `styles`.
10+
React CSS Loader provides a Higher Order Component which you pass your own components into and optionally an object as a second parameter with a function called `styles`.
1111

1212
When a displayName is present on your component, react-css-loader will try to resolve the displayName to a css file on the server. For example if you had a displayName of `Header` it will try to resolve to `Header.css`.
1313

@@ -16,7 +16,7 @@ You can also define your own styles using the styles function which should retur
1616
```
1717
/* ./app.js */
1818
import React from 'react';
19-
import {StaticCSS as CSS} from 'react-css-loader';
19+
import {StaticCSS as CSS} from '@mintuz/react-css-loader';
2020
2121
const MyComponent = () => {
2222
return <div className="my-custom-element"/>;
@@ -43,7 +43,7 @@ The file system adapter will resolve css files from your local file system and a
4343

4444
```
4545
import App from './app'; /* React application */
46-
import {Resolver, FileSystemAdapter} from 'react-css-loader';
46+
import {Resolver, FileSystemAdapter} from '@mintuz/react-css-loader';
4747
4848
const cssResolver = new Resolver(App, new FileSystemAdapter({
4949
folderPath: `${__dirname}/styles/`,
@@ -70,7 +70,7 @@ console.log(cssString);
7070

7171
```
7272
import App from './app';
73-
import {Resolver, FileSystemAdapter} from 'react-css-loader';
73+
import {Resolver, FileSystemAdapter} from '@mintuz/react-css-loader';
7474
7575
const cssResolver = new Resolver(App, new FileSystemAdapter({
7676
folderPath: `${__dirname}/styles/`,
@@ -95,7 +95,7 @@ If you serve your CSS via a CDN, this is for you. Rather than resolving the CSS
9595

9696
```
9797
import App from './app';
98-
import {Resolver, CDNAdapter} from 'react-css-loader';
98+
import {Resolver, CDNAdapter} from '@mintuz/react-css-loader';
9999
100100
const cssResolver = new Resolver(App, new CDNAdapter({
101101
cdnRoot: 'https://my-cdn.com'

0 commit comments

Comments
 (0)