Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,161,164 members, 7,845,831 topics. Date: Friday, 31 May 2024 at 05:41 AM |
Nairaland Forum / Science/Technology / Programming / Guys, I Need Help With This Reactjs Issue Please. (2180 Views)
Reactjs Challenge - Fun Edition / Please I Need Help With This Reactjs Issue - Context Api & RTK (pictures) / Wordpress And Bbpress Issue, Please Help (2) (3) (4)
Re: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(f): 3:47pm On Nov 15, 2022 |
chukwuebuka65: Can you code what you suggested using the API link in the screenshot? If you use what you suggested and it works then I owe you 5k. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Nobody: 4:29pm On Nov 15, 2022 |
Devdevdev:. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Nobody: 4:35pm On Nov 15, 2022 |
Devdevdev: U really don't know how dumb u sound 1 Like |
Re: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(f): 4:38pm On Nov 15, 2022 |
GREATIGBOMAN: Okay, I was wrong. I apologise to ChukwuEbuka65 and to you. I've learned something today. Thanks for the screenshot |
Re: Guys, I Need Help With This Reactjs Issue Please. by Nobody: 4:39pm On Nov 15, 2022 |
Devdevdev: Sharap and send him his 5k |
Re: Guys, I Need Help With This Reactjs Issue Please. by tensazangetsu20(m): 4:49pm On Nov 15, 2022 |
Devdevdev: Actually he's right. I thought you had no arrays and your inner result was just objects. If it's an array you can call it and Map it. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Nobody: 4:49pm On Nov 15, 2022 |
Devdevdev: She-Male was even using Math.random() to generate keys with .map() That could easily give u keys that aren't unique and unnecessary time wasted in computing random numbers when u could simply use the current index of that array. 1 Like |
Re: Guys, I Need Help With This Reactjs Issue Please. by chukwuebuka65(m): 5:04pm On Nov 15, 2022 |
GREATIGBOMAN: You don save me today. Lol 1 Like |
Re: Guys, I Need Help With This Reactjs Issue Please. by qtguru(m): 5:52pm On Nov 15, 2022 |
chukwuebuka65: people harsh for this section , 2 Likes |
Re: Guys, I Need Help With This Reactjs Issue Please. by niel63(m): 6:05pm On Nov 15, 2022 |
qtguru: I swear. Me sef dey thread with plenty carefulness these days. Omo, blood dey hot wella. |
Re: Guys, I Need Help With This Reactjs Issue Please. by niel63(m): 6:12pm On Nov 15, 2022 |
GREATIGBOMAN: The beauty of "await" just like I mentioned up there... I so much hate that "then" stuff. E too dey stressful aswear. 1 Like |
Re: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(f): 6:23pm On Nov 15, 2022 |
qtguru: niel63: I'll rather get insulted in the course of getting knowledge then remain quiet and stay ignorant. I actually don't care if I'm insulted. I'll keep asking questions. 1 Like |
Re: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(f): 6:24pm On Nov 15, 2022 |
GREATIGBOMAN: This returned a warning error though. There should have been a return before the div that contains the key. |
Re: Guys, I Need Help With This Reactjs Issue Please. by qtguru(m): 6:44pm On Nov 15, 2022 |
Devdevdev: You don't need a return because of the fat arrow 1 Like |
Re: Guys, I Need Help With This Reactjs Issue Please. by Nobody: 7:00pm On Nov 15, 2022 |
Devdevdev: That's implicit return numbhead. And no errors |
Re: Guys, I Need Help With This Reactjs Issue Please. by Hannania(m): 7:45pm On Nov 15, 2022 |
Devdevdev:For just this API render, this will do. When you learn Redux(using the reduxToolkit library ), try and make use of Axios. It's way neater. Also, try and use Eslint and style linters In your development environment. It will keep you In check for best practices. Management with Redux will make your CV stand out amongst applicants. 5 Likes 2 Shares |
Re: Guys, I Need Help With This Reactjs Issue Please. by chukwuebuka65(m): 8:32pm On Nov 15, 2022 |
GREATIGBOMAN: Is that tailwindcss? Or you made your own utility classes? Looks like tailwind is getting popular. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(f): 9:11pm On Nov 15, 2022 |
Hannania: Thanks. I already planned to start learning Redux this week.. 1 Like |
Re: Guys, I Need Help With This Reactjs Issue Please. by qtguru(m): 10:10pm On Nov 15, 2022 |
Devdevdev: You're jumping too fast, you don't even know the basics of JS before jumping into Redux. JavaScript is not just syntax, but a lot of other API like DOM, and stuff. Use a good book. Not all Front-end jobs are about consuming API, you will be told to create UI Custom Components or debug some frameworks, these are things not taught on freecodecamp and the like. There's a lot to know, Browser Paint Cycle, Prototype Inheritance,etc Use a book o, I've worked with various companies and the only saving grace for me has been the Core JS foundation, every framework magic still resolves around JS, even React. JSX is not supposed to be possible, but something parses it and constructs it into DOM via JavaScript. JavaScript is massive, other than the syntax, there are a ton of APIs like WebGL, Audio, Video, Canvas, WebWorkers, Storage, Network, and HID the list is long and gets longer. I work with Svelte for a Gas company in the US, and the code here is insane, we've built a lot of custom UI components draggable widgets, Canvas that renders Shape from an exported C++ Desktop app for Gas Diagrams. Don't learn Redux, focus on JS first. I usually don't tell people to read JS first because I know people want quick cash, but if you want to be a seasoned dev, learn JS well. There are 24 Chapters in this book. Nothing stops you from reading a chapter a day or for 2 days. I am writing a Shopify Theme and it's pure JavaScript with customElements, that is another API sef I didn't mention, you see how crazy JS is, it keeps expanding. 7 Likes 2 Shares
|
Re: Guys, I Need Help With This Reactjs Issue Please. by Nobody: 11:12pm On Nov 15, 2022 |
chukwuebuka65: Tailwind I used. Tailwind is popular as at now.... not getting popular. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(f): 6:25am On Nov 16, 2022 |
qtguru: Thank you, I will read the book. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Tobedated(m): 9:14am On Nov 16, 2022 |
Devdevdev:sooo where's the 5k |
Re: Guys, I Need Help With This Reactjs Issue Please. by chukwuebuka65(m): 12:09pm On Nov 16, 2022 |
Tobedated: Be like you want collect. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Deicide: 1:16pm On Nov 16, 2022 |
Please remove that useEffect() it's not needed. Since you wanna render on Button click. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Nobody: 2:33pm On Nov 16, 2022 |
Deicide: I believe it's needed since the page needs to fetch the data on first load. Also where I think there's a mistake in the person's code is, she didn't add the changePage usestate hook as a dependency in the useEffect hook. I don't think that her code will change page since that useEffect will run only once.... that is... that fetch won't run more than once. The changePage hook should be a dependency in useEffect array. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Newusername(m): 6:25pm On Nov 16, 2022 |
qtguru: I have seen the book. Thank you. You are a great inspiration. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Devdevdev(f): 8:58pm On Nov 16, 2022 |
qtguru, I just started reading the book. I'll spend the night reading it amd I'll continue tomorrow. Thanks for the recommendation.
|
Re: Guys, I Need Help With This Reactjs Issue Please. by pixey(m): 8:42am On Nov 17, 2022 |
Devdevdev:You really did well but just some refactoring to point out. You didn't have to use async when there is no await and secondly maybe you can set the state to "res.data.results" .This is will give you an array of results you need. I would also recommend you download JSON viewer pro extension and lastly the useEffect hook is not necessary. |
Re: Guys, I Need Help With This Reactjs Issue Please. by jikins(m): 8:48am On Nov 17, 2022 |
GREATIGBOMAN: This works better but so does her code even though I feel there are issues with it as she is passing an argument to a function that doesn't accept one. But she is calling the function again every time the user changes page so it will work too I feel. |
Re: Guys, I Need Help With This Reactjs Issue Please. by Gbsks: 4:32pm On Nov 19, 2022 |
qtguru:Please, What edition is this ? Where can I get the PDF ? |
Flutterwave Dollar To Naira Exchange Rate / Programmers help me With This Problem Pls !!!!!!!!!!! / White Screen Error Solved & Getting Whoops! Back In Laravel 5
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 59 |