|
|
@ -10,12 +10,10 @@ Installation
|
|
|
|
[`react-whitelabel`](https://www.npmjs.com/package/react-whitelabel)
|
|
|
|
[`react-whitelabel`](https://www.npmjs.com/package/react-whitelabel)
|
|
|
|
is availabile in the NPM registry.
|
|
|
|
is availabile in the NPM registry.
|
|
|
|
|
|
|
|
|
|
|
|
shell
|
|
|
|
|
|
|
|
> npm i react-whitelabel
|
|
|
|
> npm i react-whitelabel
|
|
|
|
|
|
|
|
|
|
|
|
or
|
|
|
|
or
|
|
|
|
|
|
|
|
|
|
|
|
shell
|
|
|
|
|
|
|
|
> yarn add react-whitelabel
|
|
|
|
> yarn add react-whitelabel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +22,6 @@ Example
|
|
|
|
|
|
|
|
|
|
|
|
**app.js**:
|
|
|
|
**app.js**:
|
|
|
|
|
|
|
|
|
|
|
|
javascript
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import React from 'react';
|
|
|
|
import { WhiteLabelProvider } from 'react-whitelabel';
|
|
|
|
import { WhiteLabelProvider } from 'react-whitelabel';
|
|
|
|
import Header from './Header';
|
|
|
|
import Header from './Header';
|
|
|
@ -53,7 +50,6 @@ Example
|
|
|
|
|
|
|
|
|
|
|
|
**Header.jsx**:
|
|
|
|
**Header.jsx**:
|
|
|
|
|
|
|
|
|
|
|
|
javascript
|
|
|
|
|
|
|
|
import React from "react";
|
|
|
|
import React from "react";
|
|
|
|
import { withWhiteLabelContext } from 'react-whitelabel';
|
|
|
|
import { withWhiteLabelContext } from 'react-whitelabel';
|
|
|
|
|
|
|
|
|
|
|
|