r/WebDevHelp • u/danuser8 • May 26 '20
JavaScript What is the difference between Object.prototype and Object.defineProperty?
So both can crest a new object property. Why use one over the other? I am relatively new to JavaScript, thanks.
r/WebDevHelp • u/danuser8 • May 26 '20
So both can crest a new object property. Why use one over the other? I am relatively new to JavaScript, thanks.
r/WebDevHelp • u/[deleted] • Jan 07 '21
Hello! I need to add a close button to the current opened tooltip and close any other tooltip when a new one is clicked. I tried using useState and useRef to accomplish this but no luck yet. I’m adding this to existing code that isn’t mine, also typescript was added to this and in new to it. Any help much appreciated! Let me know if you’ll like to see a code example :)
r/WebDevHelp • u/h0nestjin • Jan 26 '21
Hi, apologies if this is trivial but I am having some issues implementing PWA functionality and a Service Worker to my app. It’s built using Node/Express providing API routes to data, and React in the front end.
I just used create react app initially, but now the project is complete and it needs to be a PWA. There seems to be some conflicting advice on where I implement the service worker, some sites suggest in node, others in react public.
What is the best way forward?