react-print-modern

1.1.3 • Public • Published

react-print-modern

react version >= 16.0.0

Install

npm install react-print-modern

Usage

// file needs print
class App extends Component {
  render() {
    return (
      <div className="App">
        <header className="App-header">
          <img src={logo} className="App-logo" alt="logo" />
          <h1 className="App-title">Welcome to React</h1>
        </header>
        <p className="App-intro">
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
        <Printer>
          <h1>print something</h1>
        </Printer>
      </div>
    );
  }
}

TODO

  • how to handle async render components?

Readme

Keywords

Package Sidebar

Install

npm i react-print-modern

Weekly Downloads

3

Version

1.1.3

License

MIT

Unpacked Size

8.47 kB

Total Files

12

Last publish

Collaborators

  • cliberal