Redux Print
Sometimes you can't force CSS transitions while trying to print the page. In this case you will be confused when you find out that your page will be printed not as you expected it (surprise!).
To solve that you can force a hiding of some elements using Virtual DOM.
Example
my-widget.js
{ const printPage printPageState = thisprops const className = return <div className=className> printPageStateisProcessing === false && <button onClick=printPage> Print </button> /* Content */ </div> } const mapStateToProps = printPageState const mapDispatchToProps = type: PRINT_PAGE mapStateToProps mapDispatchToPropsMyWidget
store.js
const reducer = const finalCreateStore = createStore