react hide elements from window print

The solution for “react hide elements from window print” can be found here. The following code will assist you in solving the problem.

//App.js
import “./App.css”

//App.css
@media print{
.d-print-none{
display:none;
}
}

//Apply that class name to any element you want to hide

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in