Beginner React.js Coding Interview (ft. Clément Mihailescu)

2020 ж. 19 Қар.
2 100 546 Рет қаралды

I give Clément Mihailescu a mock React.js interview that is geared towards beginners.
Checkout the video we made on Clem's channel: • Easy Google Coding Int...
#benawad #ClémentMihailescu #react ​

----
Follow me online: voidpet.com/benawad
#benawad

Пікірлер
  • Checkout the video we made on Clem's channel where I do an Algo interview: kzhead.info/sun/qayEqq2IromHnp8/bejne.html

    @bawad@bawad3 жыл бұрын
    • Was not better to use the useEffect deps for refetching more?

      @quirinolorusso125@quirinolorusso1253 жыл бұрын
    • Oke I guess you just are pointing the same which resulted in turning off rules :D

      @quirinolorusso125@quirinolorusso1253 жыл бұрын
    • What about using useCallback for that fn instead of storing in the ref?

      @quirinolorusso125@quirinolorusso1253 жыл бұрын
    • What font are you using?

      @david_wolfenden@david_wolfenden3 жыл бұрын
    • I thought this interview was very realistic until you said "feel free to Google things". Yeah, I've never been on a interview where they allowed me to google anything...

      @BillClinton228@BillClinton2283 жыл бұрын
  • Do you know what the scariest thing in the world is? Not knowing how to write a React component in a Ben Awad interview.

    @clem@clem3 жыл бұрын
    • Do you know what’s even more scary than this ? An Angular interview Jokes aside I’m actually learning Angular. I might have made the wrong choice but oh well

      @harispapadopoulos4295@harispapadopoulos42953 жыл бұрын
    • @@harispapadopoulos4295 react is easy for me but angular is tuff...

      @FahadAli-ot5kn@FahadAli-ot5kn3 жыл бұрын
    • hhhhhhhhhhhhhhhhhhhhhhhh

      @salahaosamaelhoseneyali7019@salahaosamaelhoseneyali70193 жыл бұрын
    • Incorrect, the scariest thing is getting a high paying job writing Angular code... gulp

      @Freshlygrazed@Freshlygrazed3 жыл бұрын
    • Ahahahah good one

      @alexIVMKD@alexIVMKD3 жыл бұрын
  • Interview for a FRONT-END position - "The uglier the better" "This is my jam!" Thanks, we'll be in touch.

    @creatorsremose@creatorsremose3 жыл бұрын
    • Lmaooo

      @louisnwosu7186@louisnwosu71863 жыл бұрын
  • cool trick: 1. Know nothing about React 2. Watch this video 3. Study React for a bit 4. Come back 5. "oooh"

    @Enjubi@Enjubi3 жыл бұрын
    • lol happened to me

      @zurabzaridze9603@zurabzaridze96033 жыл бұрын
    • Going to try that

      @Vilhena6969@Vilhena69693 жыл бұрын
    • I've hardly touched react, but it mostly made sense to me. I was a bit confused that the function he was calling wasn't hoisted though. Is that a typescript feature?

      @thesupercoach@thesupercoach3 жыл бұрын
    • @@thesupercoach Could be encapsulation meaning High order function. I might be wrong here, still learning Javascript.

      @ItzJammyZzJ@ItzJammyZzJ3 жыл бұрын
    • @@thesupercoach arrow functions don't get hoisted

      @Forsvinne77@Forsvinne773 жыл бұрын
  • I'd love to see you guys continue this as a series, gradually increasing the difficulty!

    @JayronWhitehaus@JayronWhitehaus3 жыл бұрын
  • How front end interviews should be: This video How they actually are: ok so can you invert a binary tree for me please

    @CardinalHijack@CardinalHijack3 жыл бұрын
    • that's the horrible truth

      @weirdscintillatingvedios2122@weirdscintillatingvedios21223 жыл бұрын
    • Ik right !! Not knowing algo and da is exactly why I choose frontend. Now they expect us to be a master in that

      @ramudaredevil@ramudaredevil3 жыл бұрын
    • Just attach class invert to the tree and use this CSS: .invert { transform: rotate(180deg); }

      @digibard2890@digibard28903 жыл бұрын
    • @@digibard2890 love this

      @CardinalHijack@CardinalHijack3 жыл бұрын
    • Only at mega corps, interviews at smaller companies are more like the above or they just want to see some code/projects and talk to you about what you've worked on.

      @jackvial5591@jackvial55913 жыл бұрын
  • I wish every tech interview was as friendly

    @richardguerre3475@richardguerre34753 жыл бұрын
    • Yup

      @ayushkedia8469@ayushkedia84693 жыл бұрын
    • they usually are

      @alpha_6t9@alpha_6t93 жыл бұрын
    • Never met one that wasn't this friendly

      @GodleyBeast@GodleyBeast3 жыл бұрын
    • Maybe it's just in your mind the anxiety

      @Rafps3player@Rafps3player3 жыл бұрын
    • You've said it all!

      @fotiem.constant4948@fotiem.constant49483 жыл бұрын
  • As much as most of this makes sense to me as a Junior Webdeveloper, I find it stunning that people can write code from the get go just thinking through the application and using knowledge they've gathered over the years. I literally have to google nearly every shit that I try to make and it really puts it into perspective for me of how much I still need to learn. :)

    @Jindujun@Jindujun3 жыл бұрын
    • You will be there

      @_danisson@_danisson2 жыл бұрын
    • Once you have a solid 1000 hours of solid production experience in web dev, you should be able to be in a close enough state to mirror clem's performance.

      @ade8890@ade88902 жыл бұрын
    • shhhiiish I tought i was the only one and I must know how to write all that without checking Everything although I understand the concepts very well and I felt like the most shit programmer ever thank you haha

      @meitailo@meitailo2 жыл бұрын
    • this exactly is the difference between a jr dev and a senior dev, I also used to google every single little thing when I first started in this field, but as I developed a better skillset and through reading the docs countless times and books and experience it all led me to actually know how to do shit from scratch....if you are really passionate about coding you will be there in no time.

      @andreya6156@andreya61562 жыл бұрын
    • @@androranogajec5029 Thanks for that brilliant tip, haven't thought about that. Really glad you told me that.

      @Jindujun@Jindujun2 жыл бұрын
  • i like the fact that clement is humble and admit that he doesn't know about the error upfront

    @panjc8543@panjc85433 жыл бұрын
  • Ben is doing the sassy interviewer stereotype perfectly here.

    @habibsspirit@habibsspirit3 жыл бұрын
  • This way of interviewing seems way more relative than just doing algorithms, I wish companies would adopt this.

    @sjadev@sjadev3 жыл бұрын
    • Yeah, to me watch someone inverting binary tree is so boring haha

      @danielcastillo7133@danielcastillo71333 жыл бұрын
    • In Ukraine most of interviews are like this, close the project/product challenges

      @alex_chugaev@alex_chugaev3 жыл бұрын
    • frontend interviews are usually less ds-algo

      @xskrish@xskrish3 жыл бұрын
    • I would leave the interview. If I were applying for a font end position and they started asking my questions beyond the scope of the position I would tell them to have a wonderful day. That is if that is only their concern. If they started out with relative questions and then lead into it just to see the scope of everything I knew... then that would be fine. But I feel most front end specific job interviews do focus more on this style of interviewing. I mean they need to know you can do the front end stuff. Would be funny to hire someone that has mastered sorting algos but then couldn't center a div.

      @beaubreau@beaubreau2 жыл бұрын
    • Who ever can solve algorithm questions can solve or learn how to solve these questions and challenges in a minute.

      @benyaminbeyzaie301@benyaminbeyzaie3012 жыл бұрын
  • gender: “female” name: Object 8:32

    @i2awWombat@i2awWombat3 жыл бұрын
    • HAHAHA

      @arafatzahan2082@arafatzahan20823 жыл бұрын
    • lmao

      @ron0studios@ron0studios3 жыл бұрын
    • bruh i saw that too

      @alexandermylnikov7774@alexandermylnikov77743 жыл бұрын
    • Secret coding interview technique. Having sexist code gives you a higher acceptance rate at faang!

      @ron0studios@ron0studios3 жыл бұрын
    • Isnt that all women?

      @fadedlama@fadedlama3 жыл бұрын
  • 33:06 - you'd wrap fetchNextUser in a useCallback if you wanted to satisfy the linter and pass fetchNextUser to the dependency array. This is because the function is re-allocated on render because it's within render scope, and therefore the function reference changes between renders, causing your useEffect to every time (based on shallow comparison of the dep array), so useCallback avoids that and keeps the reference the same between renders.

    @Knigh7z@Knigh7z3 жыл бұрын
  • "Uglier the better, this is my jam" nailed it.

    @raynvii7140@raynvii71403 жыл бұрын
  • Thank you guys for making this video. I really enjoyed going through these questions & trying to code the solutions to test myself before watching Clément's solutions . Keep making such videos.

    @ankitkr09@ankitkr093 жыл бұрын
  • Interview: Why do you want to join this company? Candidate: I was bullied into doing this interview. lmao

    @hamzahmd_@hamzahmd_3 жыл бұрын
  • so i work for him and he works for you...? i may have to quit

    @NickWhite@NickWhite3 жыл бұрын
    • lmaooooo

      @skgkensquad738@skgkensquad7383 жыл бұрын
    • Looks like a pyramid scheme😂

      @mrfred456123@mrfred4561233 жыл бұрын
    • You should hire Ben and finish the circle

      @jaequery1112@jaequery11123 жыл бұрын
    • lmaoooo

      @processorbot8761@processorbot87613 жыл бұрын
    • yea now you hire ben

      @soulninjadev@soulninjadev3 жыл бұрын
  • thank you, that was so nice! as a junior I feel comforted seeing this type of interview, I could actually answer those questions without even typing the code. now it would be really cool to see something like this for junior+, middle, middle+ etc. levels!

    @lifetimess@lifetimess3 жыл бұрын
    • I'm a Sr. They didn't ask me to code anything or provide any code. It's the jr roles where they'll want to see it. At a mid and sr level. I think the interviewer can tell because you'll be asking questions about the codebase and the design patterns, issues they have, how they release new features and so on. How many times they're late or delayed, at that time what is going on (are people working weekends and late nights). You're more worried about how the company functions at that point.

      @barkbark5645@barkbark56453 ай бұрын
  • This should be a series !! With a bunch of different languages, and levels of difficulties

    @yubin_jo@yubin_jo3 жыл бұрын
  • I wish all interviews Front-End were like this. Relaxing, yet, extensive.

    @programmercouple@programmercouple3 жыл бұрын
  • This is really good, I've done interviews in C#, python and on regular stuff but had no idea what it looked like for front end, this is a really approachable React interview to practice with!

    @will_1536@will_15363 жыл бұрын
  • I love these two guys! Two of the most trustworthy coding mentors out there.

    @JustinProfaizer@JustinProfaizer3 жыл бұрын
  • I started with react 6 months ago cool to see i was able to answer this stuff. You guys make great videos

    @mokroargra7277@mokroargra72773 жыл бұрын
  • Great video, love this live coding even though the task isn't that complex, very efficient, and accurate solution :)

    @SaharThe49@SaharThe493 жыл бұрын
  • For the final bit you can pass your setters in the effect, or memo it instead of ref it. But I usually don't have empty dependencies as linting error. Also, I'm almost sure that if you try to set some state while the component already unmounted you'll get a memory leak error on your log, so to go around that you can return early in the promise resolution by setting a flag on a return function of the effect

    @gasparsigma@gasparsigma3 жыл бұрын
  • Should totally do the advanced react interview next

    @mfbx9da4@mfbx9da43 жыл бұрын
  • seeing some React stuff ( other than algo ), was really exciting. Also learned a lot. Please try bringing many more stuffs like this. Will be happy to watch :)

    @sayantandas3511@sayantandas35113 жыл бұрын
  • So much fun just watching you write React in this context. Nice video! :)

    @robertyoung701@robertyoung701 Жыл бұрын
  • Hey Ben and Clement, nice interview! For your question at 33:11, React encourages you to wrap your fetchRandomData function in useCallback and add it to the dependency array of the useEffect to satisfy the linting 😁 Unfortunately then you'd have to handle the dependency array for the useCallback hook, but it's the "official recommendation". I liked the useRef hack though :) Nice work and entertaining content as always!!

    @andrw_@andrw_3 жыл бұрын
  • it feels so good to know what they are talking about :)

    @ansedd@ansedd3 жыл бұрын
  • Loved this video. Super natural and really funny from both of you. PLUS really useful as well for beginners.

    @leafexchange4044@leafexchange40442 жыл бұрын
  • Another version for sure, this was one of my favorites!

    @javilionaire@javilionaire3 жыл бұрын
  • This is the greatest crossover of all time

    @user-vu4of6ey8m@user-vu4of6ey8m3 жыл бұрын
  • 0:50 Make a counter 3:10 Fetch an API 14:10 Display the API data in UI components 22:06 Add a button to load more results 29:38 Bonus: fix the linter's useEffect dependency array requirement

    @quirked504@quirked50411 ай бұрын
  • Very cool. I really like how you both talk us through what's going on.

    @PeterJaffray@PeterJaffray3 жыл бұрын
  • That was an amazing performance, both of you!

    @gregroyclark@gregroyclark3 жыл бұрын
  • Just got to the gym, still in the parking lot .. can’t stop watching!! Haha great video

    @alexwhitmore4902@alexwhitmore49023 жыл бұрын
  • Can we just appreciate and admire how Clement has nearly 100% accuracy while typing at those speeds

    @shaqirrazak699@shaqirrazak6993 жыл бұрын
    • Sorry but not impressive

      @CrazyTVAnime@CrazyTVAnime3 жыл бұрын
    • @@CrazyTVAnime sOrRy bUt NoT ImPrEsSiVe

      @CameronCobb@CameronCobb3 жыл бұрын
    • @@CrazyTVAnime ok boomer

      @kylekyle2171@kylekyle21713 жыл бұрын
    • @@CameronCobb sorry but not impressive

      @CrazyTVAnime@CrazyTVAnime3 жыл бұрын
    • @@kylekyle2171 boomer doesnt work here since im 19 and I used to type 170 when I was 13 KEKW

      @CrazyTVAnime@CrazyTVAnime3 жыл бұрын
  • Thank you for adding tips and best practices too. Highly appreciated.😃

    @marcus_leon@marcus_leon2 жыл бұрын
  • OMG that is the meeting up i was wondering for years!!!!! GOOD stuff!!!!!! thanks guys! love both of you!

    @CASLOAcademy@CASLOAcademy3 жыл бұрын
  • Awesome stuff ! what I most liked about this video is the fact that Clément was thinking out loud so we could have a better understanding on how he would solve a problem. I would love to see a second video. Thanks guys, from France PS : René Coty was a french president ;)

    @tichouls5176@tichouls51763 жыл бұрын
  • This is the most forgiving interview I've seen LOL. Pls be everyone's interviewer Ben!

    @kvncnls@kvncnls3 жыл бұрын
  • This is interesting, I wish all interviews will be this fun and interactive

    @giftedbraintech5151@giftedbraintech51513 жыл бұрын
  • this was really fun to watch, and really interesting to see the thought process off it

    @Chyphix@Chyphix3 жыл бұрын
  • I've got notification of this video from both channels.

    @arijitdas7526@arijitdas75263 жыл бұрын
  • Wow, I never knew you could do {name: {first, last}} to convert nested objects into variables, awesome.

    @vizzy4652@vizzy46523 жыл бұрын
    • Object destructuring

      @slysmyle972@slysmyle9722 жыл бұрын
    • Yes lol, I would have done: const { name } = userInfo; const { first, last } = name; HAHAHAHA

      @nibbler7687@nibbler76872 жыл бұрын
    • Several tips here: 1. Always add a default value when destructuring nested objects. Like { name: { first, last } = {} }. This will help you to avoid errors if `name` is not defined in base object. 2. You can also rename variables during destructuring to avoid shadows. Like { name: {first: firstName, last: lastName}}

      @user-uk7nt5cz4f@user-uk7nt5cz4f2 жыл бұрын
    • Yea he does a lot of destructuring here, it's confusing at first, but then extremely convenient

      @nedaltrebor8553@nedaltrebor85532 жыл бұрын
    • Nice

      @laplasparadox3138@laplasparadox31382 жыл бұрын
  • This was great!! It's super helpful to follow off-the-cuff reasoning. Coming from Vue and starting to dust off my very limited React knowledge

    @lalainaramarivelo@lalainaramarivelo2 жыл бұрын
  • Love this!! Thank you so much! Please provide more videos like this~

    @mandihaase2744@mandihaase27443 жыл бұрын
  • Clement is such a good sport. Legend! Ben too :)

    @saradevanney9469@saradevanney94693 жыл бұрын
  • I used this to practice for my first React interview - it helped - thanks!

    @jacksonboehman3454@jacksonboehman34542 жыл бұрын
    • Did you get it?

      @squashh@squashh2 жыл бұрын
  • Best React tutorial format I've seen so far.

    @amateruss@amateruss3 жыл бұрын
  • This is really fun. Do more of this, please.

    @100AFRO@100AFRO3 жыл бұрын
  • Clément's confidence started to increase once he figured out that the bug was from line 31 instead of 32.

    @honglytech@honglytech3 жыл бұрын
    • HE just cared about money :P

      @nguyenhoanglong420@nguyenhoanglong4203 жыл бұрын
  • Aside from needing to learn more about pagination, I’d get the job 😂 I wish interviews were like this

    @tannerbarcelos6880@tannerbarcelos68803 жыл бұрын
  • This was fun and I learned a bunch. Thanks for making this video!

    @mdiazftw@mdiazftw2 жыл бұрын
  • This is pretty similar to a recent react interview I had. Nice video and convo :)

    @tksendo@tksendo3 жыл бұрын
  • I was dying with laughter when he tried to disable the lint rule with a comment

    @kelbiekelbie909@kelbiekelbie9093 жыл бұрын
    • But we all do that especially for this lint warning 🤣

      @iMakeYoutubeConfused@iMakeYoutubeConfused3 жыл бұрын
    • Yeah this dude is not that good as he says he is

      @siber195@siber1953 жыл бұрын
    • The first thing he did right is the comment but the content is wrong so unable to solve the lint error haha But //eslint-disable-next-line should do it ~

      @haogreat6899@haogreat68993 жыл бұрын
    • He was at Facebook for 2 months only. Prior to that he was at Google for only 3 years. He has only been programming for 3 years. He learnt how to code 6 months before joining Google. That is why he is not that good.

      @larrydarrell7299@larrydarrell72993 жыл бұрын
    • @@larrydarrell7299 you can be more than good with this much of coding

      @iMakeYoutubeConfused@iMakeYoutubeConfused3 жыл бұрын
  • imagine saying "the uglier the better" to a front end dev😂 Ps- Thanks for the 200 likes

    @AmanRaj-gy6qv@AmanRaj-gy6qv3 жыл бұрын
    • when he said that I was really hoping he would use a

      @PP-sm4zm@PP-sm4zm3 жыл бұрын
    • lmaoooo

      @processorbot8761@processorbot87613 жыл бұрын
    • lol

      @phil5053@phil50533 жыл бұрын
    • Well functionality is important if it's working . we can do makeups later.

      @muhammadwaqarsiddiqui6731@muhammadwaqarsiddiqui67313 жыл бұрын
    • And the designer 😂

      @natoisnazi@natoisnazi3 жыл бұрын
  • This was actually a very interesting video and was fun to watch. I wish interviewers would learn from this

    @chidioguejiofor@chidioguejiofor2 жыл бұрын
  • As someone just breaking into the world of programming this was incredibly insightful!

    @KieranAtkins@KieranAtkins Жыл бұрын
  • i just started learning react few months ago and I am so happy that I understood all the questions and the potential solutions :) Great content!!

    @kuldipmaharjan@kuldipmaharjan2 жыл бұрын
    • Hi Kuldip! Are you open for job change currently? Would you be interested in exploring a job opportunity in web development?

      @shivanigaddagimath6105@shivanigaddagimath61052 жыл бұрын
    • No you didn't

      @computeraidedyami@computeraidedyami2 жыл бұрын
    • @@computeraidedyami i actuallly did.. It was not because I am smart or anything, I had to learn it for building pcf control in dynamics crm which involves learning react framework. I struggled for weeks until the idea of react components etc clicked in my brain. I still struggle with some of the difficult concepts but overall I undertand things a lot better now.

      @kuldipmaharjan@kuldipmaharjan2 жыл бұрын
    • @@kuldipmaharjan oh ok 👍

      @computeraidedyami@computeraidedyami2 жыл бұрын
  • Bro i watched your video just like 30 mins before my web development interview and in the react section they have asked the same questions as you have asked and I have solved all those questions thanks to you 😀😀

    @namankukreja818@namankukreja8188 ай бұрын
  • it was a blast watching this, guys. I really like the format of the interview!

    @nichitatrifan9986@nichitatrifan998610 ай бұрын
  • This was so great. Love your videos, they’re really helping give me more confidence. One side note, never use index on as a key unless the list is immutable. Also, your fetch function was a const, so I’m not sure how the reference would be reassigned.

    @briankopp7010@briankopp7010 Жыл бұрын
  • "I'll put this in a p tag" "fantastic...!"

    @randerins@randerins3 жыл бұрын
  • Bruh, Imagine getting a job.

    @hfsfy3939@hfsfy39393 жыл бұрын
    • Jobs are overrated, Dante's 7th circle of tutorial hell is where it's at.

      @user-ve1kt5ct1p@user-ve1kt5ct1p3 жыл бұрын
  • Lol, this is really good content. Keep it up guys! I had so much fun watching this.

    @sergiocamacho730@sergiocamacho7303 жыл бұрын
  • this was amazing. Loved that it was frontend ( I never get that in my life anymore)

    @HikarusVibrator@HikarusVibrator3 жыл бұрын
  • damn, even I'm nervous for Clement lmao

    @slan7@slan73 жыл бұрын
  • useCallback instead of useRef - it memoizes the fetch function for ref equality, so the effect doesnt rerun on every render. UseCallback will mean that if you eventually do a refactor so the function *does* depend on some value inside the component, your compiler will yell at you until you include it as a dependency. Useref might solve the problem now, but it can hide future potential dependencies. Also, working with a ref is annoying, constantly looking up .current or forgetting to. If the function used really doesnt depend on anything in the component then it should be externalised if possible.

    @ShaloopShaloop@ShaloopShaloop3 жыл бұрын
    • There's an issue with using useCallback as well. useCallback would depend on all the state variables as well, and since state is changing on each click, useCallback would also return a new function. We'll get the same lint errors like we're getting right now.

      @binaryskeptic5988@binaryskeptic59883 жыл бұрын
    • @@binaryskeptic5988 The only state I can see is the page number - i.e. only incrementing the page number (stated in the useCallback deps array) should rerun the effect - which if you think about it, is the exact behavior this component is looking for. In most if not all cases, dependencies may seem annoying at first, but eventually you understand that they declaratively get at exactly the functionality that is needed

      @ShaloopShaloop@ShaloopShaloop3 жыл бұрын
    • @@ShaloopShaloop Makes sense, thank you!

      @binaryskeptic5988@binaryskeptic59883 жыл бұрын
    • I was looking for this solution.

      @premk191@premk1913 жыл бұрын
    • you could use useMemo as well, by returning the fetch function itself from the hook's callback. useCallback is basically a specialization of useMemo for functions.

      @dmz985@dmz9853 жыл бұрын
  • beautiful...... I'm gonna get to this level soon bro! that feeling of complete confidence in your problem solving skills is the sweetest thing in the world. Excellent work Clément

    @scottjosh50@scottjosh50 Жыл бұрын
  • Way to go Ben, this is how you should conduct interview !!!

    @jithunniks@jithunniks3 жыл бұрын
  • For that linter error (which I deal with weekly), take that huge function expression out of the component (it's unreadable to define those in there anyways). Your first thought will be, but now I don't have `setUserInfos` in scope. Right, so pass it as a callback function. You have one function that fetches data, creates a new merged list, and updates 2 pieces of state. It does too much anyways. Ok, but now you're thinking that you need to add `setUserInfos` to the dependency list of useEffect, and you're right back to where you started, right? That's fine, the function that comes back from `useState` is the same exact function on each render. It'll never change. Consider this snippet from the react docs: "React guarantees that setState function identity is stable and won’t change on re-renders. This is why it’s safe to omit from the useEffect or useCallback dependency list."

    @Captainlonate@Captainlonate2 жыл бұрын
  • This guy could probably speed run building startups

    @dh.bryson1627@dh.bryson16273 жыл бұрын
  • As a person who has started learning react this gave me a confidence boost since I was able to give right answers

    @devmanek@devmanek2 жыл бұрын
  • Hey Ben! You should add more such videos. Loved it!

    @himadribhargava8455@himadribhargava84553 жыл бұрын
  • fetchNextUser() is a function that gets newly created on every render call since its defined inside the component. Wrap fetchNextUser() inside the useCallback() hook and mention the dependencies which when changed must create a new fetchNextUser(). It's a bit more efficient this way and I guess that can get rid of the lint error.

    @sudarshankj@sudarshankj3 жыл бұрын
    • ^ this to me seems like the best way to handle this

      @tylerjnewman@tylerjnewman3 жыл бұрын
    • Isn't that pretty much equivalent to putting it in a ref in this case, though?

      @KRIGBERT@KRIGBERT11 ай бұрын
    • Great tip!

      @TCgis95@TCgis955 ай бұрын
  • finally who took everyone's interview is here for his exam . Now u will understand how it feels 🤣🤣

    @KaranSharma-ew7io@KaranSharma-ew7io3 жыл бұрын
  • This is the real deal guys!!! Do more of these on the fly coding videos!!!!

    @pyroghost11@pyroghost113 жыл бұрын
  • This is great @benawad I really wish more interviews like this!

    @danielbraz9424@danielbraz94242 жыл бұрын
  • I literally had this interview today... Dude launched right into it with no small talk and went through it at 3x speed. It was rough.

    @dmo253@dmo2533 жыл бұрын
    • Did you get the job?

      @littlebigplan@littlebigplan2 жыл бұрын
    • Hope you got the job bro

      @kenthankgod2619@kenthankgod26192 жыл бұрын
  • Moving from another framework to react I love that I was able to understand all the questions and the solutions and I have learnt more from this video than from many tutorials and courses

    @chaitanyasanakkayala4173@chaitanyasanakkayala41732 жыл бұрын
    • Hi Chaitanya! Are you open for job change currently? Would you be interested in exploring a job opportunity in web development?

      @shivanigaddagimath6105@shivanigaddagimath61052 жыл бұрын
  • This was fun to watch. Thank you for this. Also, I have a lot to learn. I was able to follow it, but I need to develop the instincts to find the solutions in a timely manner.

    @bp-ob8ic@bp-ob8ic Жыл бұрын
  • This is the kind of content I needed in my life

    @atlow2543@atlow25433 жыл бұрын
  • 12:26 we're not gonna catch any errors cuz..... we don't do that here *CEO MATERIAL SPOTTED*

    @plusk343@plusk3433 жыл бұрын
  • 23:16 So much passion in this

    @MotivationVideos1337@MotivationVideos13373 жыл бұрын
  • The best thing about this video is that someone that is a genius does the same thing we all do, and this was a beginner level test.

    @haciendadad@haciendadad3 жыл бұрын
  • Only a few mins in but this makes me feel better knowing that other people do stuff like trying to call function before it has been declared 😀. Cool interview!

    @angelainniss7986@angelainniss79863 жыл бұрын
  • Jajaja I've never imagined see those two in a vídeo jajaja

    @brandonliralizarraga9809@brandonliralizarraga98093 жыл бұрын
  • I know this is beginner react interview but it was fun to be able to point out the errors before Clement figured it out. Made me feel like a genius 😂😂😂😌

    @ramudaredevil@ramudaredevil3 жыл бұрын
    • This is beginner stuff? How long does it take to get to this point in react?

      @RealNaisuCinema@RealNaisuCinema3 жыл бұрын
    • @@RealNaisuCinema react is like javascript if you know javascript and html you should be able to follow it

      @LuisMorales-yx8di@LuisMorales-yx8di3 жыл бұрын
    • @@LuisMorales-yx8di I know the fundamentals of JavaScript and how it works but I can’t make a full project without using stack overflow for help I just know how to do basic things can you look at my portfolio and tell me if you think I’m ready for react? isaiahflagg.github.io/myPortfolio/

      @RealNaisuCinema@RealNaisuCinema3 жыл бұрын
    • @@LuisMorales-yx8di actually don’t look yet lol I failed to push my code to GitHub last night so my most current projects are not on my portfolio yet lol

      @RealNaisuCinema@RealNaisuCinema3 жыл бұрын
    • @@LuisMorales-yx8di ok you can look at the portfolio now lol

      @RealNaisuCinema@RealNaisuCinema3 жыл бұрын
  • This was really fun. We need a second version of this but with Auth APIs ;)

    @AnirudhJaingodplzsavethisearth@AnirudhJaingodplzsavethisearth3 жыл бұрын
  • I like how Ben Awad puts Clement on the Hot seat... For someone who is an Expert in programming.. It's very mind blowing that still haven't forgotten the basics of programming or should I rather say the fact that they still get excited to do the small tasks... Bigups

    @sibonelovilakazi3042@sibonelovilakazi30422 жыл бұрын
  • At 11:50 You can't use Await directly in UseEffect Callback. Even you can't type async directly into useEffect Callback for example useEffect( async ( )=>{ const response = await someApiCall(); } ) You have to create a new function inside the callback of useEffect and then you can use Async Await. For Example useEffect( ()=>{ async function helloWorld (){ const response = await someApiCall(); } helloWorld(); }) This is the correct approach.

    @Anonymous11175@Anonymous11175 Жыл бұрын
  • the perks of being a wallflower

    @dapkman9354@dapkman93543 жыл бұрын
    • Nice movie though.

      @viraj_singh@viraj_singh3 жыл бұрын
  • This video was so helpful! I had a job interview and they gave me this exact test using a different API.

    @mystikspyral09@mystikspyral092 жыл бұрын
  • I've never been so happy in my life, watching coding videos!!! 😄😄😄

    @fotios4902@fotios49023 жыл бұрын
  • Waiting for the next interview... Angular xD

    @csl4199@csl41993 жыл бұрын
    • Oh please haha

      @gabeadams2926@gabeadams29263 жыл бұрын
    • 1st task: Please harvest as many carrots as you can in 30 minutes.

      @Fuckutube547465@Fuckutube5474653 жыл бұрын
  • Amazing what’s next a cook book app ?

    @mariconcarnewiththemusterd5270@mariconcarnewiththemusterd52703 жыл бұрын
  • This is awesome. Great work guys ❤️🤝🙌

    @kylekim5861@kylekim58613 жыл бұрын
  • this is exactly what i needed... thank you ben

    @Xeneon341@Xeneon3413 жыл бұрын
KZhead