Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f2ec02ae1 | |||
| a1bf65cf52 | |||
| 058e1e75c5 | |||
| f0d35e98d9 |
@@ -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';
|
||||||
|
|
||||||
|
|||||||
2
dist/app.bundle.js.map
vendored
2
dist/app.bundle.js.map
vendored
File diff suppressed because one or more lines are too long
1311
package-lock.json
generated
1311
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-whitelabel",
|
"name": "react-whitelabel",
|
||||||
"version": "0.0.1",
|
"version": "0.0.4",
|
||||||
"description": "A React context and components that make run-time white-labeling of a React app easy.",
|
"description": "A React context and components that make run-time white-labeling of a React app easy.",
|
||||||
"main": "dist/app.bundle.js",
|
"main": "dist/app.bundle.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -22,6 +22,8 @@
|
|||||||
"homepage": "https://thomashintz.org/lib/react-whitelabel",
|
"homepage": "https://thomashintz.org/lib/react-whitelabel",
|
||||||
"license": "(GPL-3.0+ OR MIT)",
|
"license": "(GPL-3.0+ OR MIT)",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
"@babel/compat-data": "^7.10.5",
|
||||||
|
"@babel/core": "^7.10.5",
|
||||||
"react": "^16.13.0"
|
"react": "^16.13.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user