Server side rendering using Sveltekit with tailwind

Solution retrospective
This is my second sveltekit challenge. It was fun to use API. Welcome for any feedback.
####################
I found that I can not update the data after turning off ssr. I turned off of ssr because leaflet need to use window, but ssr would give "window is not define error".Does anyone have suggestion?
####################
I somehow solved the problem by using await import('leaflet')!!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Hsienz's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord