Typescript can cause some confusion when trying to define types for data that you don't know the exact shape of. Here's one method for typing an object with unknown properties.
#typescript#javascript#100DaysOfCode#code#CodeNewbie
https://t.co/QXihJARHbC
There are a bunch of different ways to copy a string to the clipboard in Javascript. Here's one method with great browser support.
#javascript#100DaysOfCode#webdevelopment#CodeNewbie
https://t.co/ccaHp489ma
The <img> element now supports lazy-loading, async decoding and many other features: https://t.co/QcbvWLQfT7 I wrote about how to optimize UX & the Core Web Vitals with it.
Docker is everywhere these days, but sometimes it can be difficult to find and remove any containers that you have running. Here's a sample to help you stop or remove these containers.
#docker#CodeNewbie#webdevelopment#100DaysOfCode
https://t.co/SE7X0shtYy
Browsers often have a hard time figuring out how to break up long words. Use the word-wrap and word-break properties to specify how a browser should handle text content that doesn't fit.
#CSS#100DaysOfCode#webdevelopment#CodeNewbie#javascript#code
https://t.co/jGmpvL9JqT
If you use React Navigation, you may have wanted to send data back to a component when using the goBack() method. This is not supported, but here's a workaround.
#ReactNative#reactjs#100DaysOfCode#CodeNewbie#ios#Android#code
https://t.co/ndkJw3sA7j
Removing all files of a given type or extension is a breeze with the command line. Here's one way you can do it on UNIX or Windows machines.
#UNIX#Windows#100DaysOfCode#Linux#CodeNewbie#code
https://t.co/lH89flNcfT