Hey guys, I’m using react-big-calendar to create an scheduler where user is able to move events around the dates on the calendar.
To use this library (and another ones that I already used) is necessary to import a .css file provided by them, as you could see in the documentation: http://jquense.github.io/react-big-calendar/examples/index.html#resource
react-big-calendar/lib/css/react-big-calendar.css
The question is: Is it best to import under the page where it will be used or inside _app.tsx (I’m using next.js)
I normally import .css files provided by libraries inside _app.tsx, but I’m not sure if it will import a unecessary file (if user dosen’t access the page with react-big-calendar) or there is no difference between import in _app.tsx or in the specifics pages.
What approach you guys are using?
submitted by /u/deggau
[link] [comments]