@bookipi/htmlgenerator 1.1.17-alpha1 → 1.1.17-alpha10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -15,24 +15,25 @@ npm install --save @bookipi/htmlgenerator
15
15
  please link the react and react-dom first via the following steps for dev environment.
16
16
 
17
17
  1. In Your Application:
18
- a) cd node_modules/react && npm link && cd ../../
19
- b) cd node_modules/react-dom && npm link && cd ../../
18
+ a) cd node_modules/react && npm link && cd ../../
19
+ b) cd node_modules/react-dom && npm link && cd ../../
20
20
 
21
21
  2. In Your Library
22
- a) npm link react
23
- b) npm link react-dom
22
+ a) npm link react
23
+ b) npm link react-dom
24
24
 
25
25
  ```jsx
26
- import React, { Component } from 'react'
26
+ import React, { Component } from "react";
27
27
 
28
- import {InvoiceCompatHtml} from '@bookipi/htmlgenerator'
28
+ import { InvoiceCompatHtml } from "@bookipi/htmlgenerator";
29
29
 
30
30
  class Example extends Component {
31
31
  render() {
32
- return <div dangerouslySetInnerHTML={{__html: InvoiceCompatHtml(
33
- invoice,
34
- lang
35
- )}} />
32
+ return (
33
+ <div
34
+ dangerouslySetInnerHTML={{ __html: InvoiceCompatHtml(invoice, lang) }}
35
+ />
36
+ );
36
37
  }
37
38
  }
38
39
  ```