a-x- / react-easy-print

Powerful react component for easy printing
https://www.npmjs.com/package/react-easy-print
MIT License
87 stars 19 forks source link

Fix state loosing case #19

Closed Serjobas closed 6 years ago

Serjobas commented 6 years ago

closes #4

Added aliases for props

With new prop names API became more clear and more obvious

Now you should use

Now print mode doesn't remove the state of your React app

Now when you proceed to print mode ( cmd/ctrl + P ), Print components are being rendered in the new DOM element, which disappears after you exit from print mode. Because of that your React app keeps it's state.

Refactoring

index.js single file splitted into independent react components, some unused code was removed from the lib

ts typings

a-x- commented 6 years ago

Update readme.md and add deprecation notes, please Look at the reference diff: https://github.com/a-x-/react-easy-print/compare/WIP

Serjobas commented 6 years ago

fixed PR issues in the latest commit

a-x- commented 6 years ago

I replied you in some folded in comments

a-x- commented 6 years ago

Remove the example 5 and add single prop to the example 1

a-x- commented 6 years ago

📦 0.7.3-0

a-x- commented 6 years ago

Errata