61
rated 0 times
[
68]
[
7]
/ answers: 1 / hits: 15807
/ 6 Years ago, thu, october 18, 2018, 12:00:00
I would like to hide a div when print preview happens but I find it almost impossible to do it in a React.
<div className=contacts></div>
Is there any possibilities that I can add pure css or if React Stylesheet supports @media print and hide element with class name contacts when print preview.
I was reading this article https://blog.logrocket.com/the-best-react-inline-style-libraries-comparing-radium-aphrodite-emotion-849ef148c473 but it just seems too much work for something that I would do poorly in css within a matter of seconds.
Any idea how can I achieve such thing in Reactjs?
More From » html