Hmm
KPCKevin Powell - Community
•Created by Hmm on 6/26/2023 in #back-end
Express with tailwindcss Issue
Fixed
4 replies
KPCKevin Powell - Community
•Created by Hmm on 3/29/2023 in #front-end
React Routing
For todos I have three routes
/signup
, /login
and /todos
. I want to redirect conditionally if user is defined or not . I am using <Navigate>
but I am not sure if this is a good pattern or not . I will use Appwrite as BaaS and I will create session for it
https://pastecord.com/onoxuquxyz.js6 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
or see how I implement it
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
there is no need of useRef hook and other stuff , just subscibie the section to observer api
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
Make the footer sticky so you can see the scrolling highlight
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
I am not gonna give you the answer right away but read through
https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
All You have to do is observer your section with
.isIntersecting
Like I do in https://tjsm.netlify.app/62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
If talking about myself , I used Intersection Observer API for my portfolio .
@nehat.dev Do you want to achieve the smooth scroll on single page?
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
this one is better
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
oh yeah idk that , I used intersection api in my project
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
yes except when you also want to style the link whenver user scroll to it
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
you can spy on the link whenever they are under viewport and change the style
62 replies
KPCKevin Powell - Community
•Created by nehatkhan on 3/17/2023 in #front-end
How to scroll to a component when the user clicks on any link or button
use intersection observer api
or use react-scroll library
https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API
62 replies