Socket
Socket
Sign inDemoInstall

react-print

Package Overview
Dependencies
21
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.17 to 1.2.18

2

package.json
{
"name": "react-print",
"version": "1.2.17",
"version": "1.2.18",
"description": "React Components for making print CSS templates cleaner and easier to manage",

@@ -5,0 +5,0 @@ "main": "dist/react-print.min.js",

@@ -10,8 +10,4 @@ # react-print

# Demo
After running npm-install or webpack, open index.html in the demo directory and hit Ctrl + P on Windows or CMD + P on Mac to open the Print Preview in Chrome to see how your changes will be applied.
# Usage
Create your own markup structure in explicitly named components (e.g., InvoicePrint). You can nest child components within these as well. If you already have all the data you need in a store, grab it in componentDidMount(). If you need to get different or extra data, make a call to the server and pass it in as props or as part of componentDidMount().
Create your own markup structure in explicitly named components (e.g., InvoicePrint). You can nest child components within these as well. If you already have all the data you need in a store, grab it in componentDidMount(). If you need to get different or extra data, make a call to the server and pass it in as props or as part of componentDidMount().
var React = require('react');
require('react-print/react-print.css');

@@ -3,0 +4,0 @@ export default class PrintTemplate extends React.Component {

@@ -6,4 +6,3 @@ var path = require('path'),

src: path.join(__dirname, 'src'),
build: path.join(__dirname, 'dist'),
app: path.resolve(__dirname, '.')
build: path.join(__dirname, 'dist')
};

@@ -10,0 +9,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc