Example usage of react-detect-print
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
src
.gitignore
README.md
package.json
yarn.lock

README.md

Example usage of react-detect-print, a higher order component to detect if the page is being printed.

Running

npm install
npm start

Your browser should open to the address http://localhost:3000. Try printing and you should see that the value of printing changes to true on the printed page.