Web development tutorials for everyone. Learn JavaScript, React.js, Next.js and Node.js, find inspiration for HTML, CSS, and web design. Become a web developer with Lama dev.
Social Media: X/Twitter: x.com/lamaWebDev Facebook: facebook.com/groups/lamadev Instagram: instagram.com/lamawebdev Discord: discord.gg/yKremu4mPr
The problem with use state is if your form is big and you are re rendering the entire form every key stroke the UI gets laggy and you can start typing faster than the screen renders
2:36 I get Uncaught TypeError: Cannot read properties of undefined (reading 'title') i tried adding currentVideo?.title i still don't get video title. I visit localhost:3000/api/videos/find/6645dd09fa6ab0fe91be97e0 and get data { "_id": "6645dd09fa6ab0fe91be97e0", "userId": "6645d3d5f8fab1f173eb55d0", "title": "tes31121", "desc": "desc", "imgUrl": "testst", "videoUrl": "testt", "views": 100, "tags": [], "likes": [], "dislikes": [], "createdAt": "2024-05-16T10:16:41.717Z", "updatedAt": "2024-05-16T10:16:41.717Z", "__v": 0 }. but const videoRes = await axios.get(`localhost:3000/api/videos/find/6645dd09fa6ab0fe91be97e0`); i get undefined.I don't understand the problem anyone have a fix?
You have not added a function to implement the working of the BUTTON of "send a message" , please review the code for singlePage.jsx , as no one is able to send a message from your implementation <div className="buttons"> <button> <img src="/chat.png" alt="" /> Send a Message </button> <button onClick={handleSave} style={{ backgroundColor: saved ? "#fece51" : "white", }} > <img src="/save.png" alt="" /> {saved ? "Place Saved" : "Save the Place"} </button> </div> Here please implement a function to handle the messaging functionality
chat gpt makes this useless projects so easy anyone even with no coding experience would be able to set up something like this, no offense for anyone here, but it will be non-sense to build this things today, there are 100000000s out there, even better, wrote by a team maybe, so if you doing this because you think you're gonna get money from it you're wrong.... i wrote 5 of these useless apps, got not even 1 single real user, BECAUSE NOBODY GIVES A $HIT. .. there is discord, whatsapp, telegram, and 1000s more that have 1million more features and are built using c++ not React, with that said, good luck with it ;)
Shows this error when deploying in vercel and visiting website... "An error occurred in the Server Components render. The specific message is omitted in production builds to avoid leaking sensitive details. A digest property is included on this error instance which may provide additional details about the nature of the error." Has anyone solved this issue?
Great effort and value! Please consider also using Typescript in the similar type of courses in the future, it's becoming more and more important than ever before.
<motion.div className='sidebar' animate={open ? "open" : "closed"}> <motion.div className="bg" variants={variants}> <Links /> </motion.div> <motion.div > <ToogleButton setOpen={setOpen} /> </motion.div> </motion.div> a samll correction in sidebar to fix the button in html body
i think he created his own custom user snippet You can make it by: go to 'File' > Preferences > Configure User Snippets > select "javascriptreact.json" and paste this code ( gist.github.com/Junialdy/5f8bd4f85a14efa0332271087c137695 )
If you're on MacOS and are having problems with your MySQL Workbench UI not looking like his, I found that MySQL workbench latest version was buggy and downgraded to MySQL workbench 8.0.34 to fix the issue
I followed the entire tutorial, but I still have an error, which unfortunately I can't resolve, when adding the middleware it doesn't redirect. Server Error TypeError: Invalid URL This error happened while generating the page. Any console logs will be displayed in the terminal window. help me :(