react-print
Advanced tools
Comparing version 1.2.17 to 1.2.18
{ | ||
"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 @@ |
4467
13