Frontend Interview Pro
Frontend Interview Pro
  • 10
  • 67 367
The new React “use()” hook in 15mins
In this video, I'll teach you how to use the brand new use() hook in React. The use() hook can be used to read data from promises and context. Additionally, while the promise is being resolved by the use() hook, you can show loaders using the Suspense component and error messages using the ErrorBoundary component. The hook can also be called inside if-else statements and loops, making it extra special.
Timestamps -
0:00 Introduction
1:00 Actual tutorial starts
1:16 use hook with promises
3:10 Using suspense to show a loading screen while use hook resolves our promise
4:24 Using error boundary to show error screen when the promise fails to resolve
5:50 Caching of promise to prevent errors
10:25 Using use hook conditionally
12:25 Using use hook with loops
13:30 use hook cannot be used with try/catch
14:19 use hook with context
------------------
Follow me -
⚪ Instagram ➡ manish_boro
⚪ LinkedIn ➡ www.linkedin.com/in/manish-boro-692b16198/
------------------
My PC Specifications -
⚪ Graphic Card ➡ GALAX RTX 2060 amzn.to/3hmSsCZ
⚪ RAM ➡ HyperX Fury 8GB 3200MHz * 2 amzn.to/3k3Pc17
⚪ Processor ➡ Ryzen 5 3600 amzn.to/2FkQzd0
⚪ CPU Cooler ➡ CoolerMaster H410R amzn.to/3hql7rb
⚪ Motherboard ➡ MSI B450 Tomahawk Max amzn.to/2Fq10f6
⚪ Webcam ➡ Lenovo 300 FHD - FHD 1080P 2.1 Megapixel CMOS Camera, Ultra-Wide 95° Lens, 360 ° Rotation amzn.to/3JX4OkZ
⚪ Gaming Chair ➡ Green Soul Monster Ultimate Series (T) Multi Functional Ergonomic Gaming Chair with Premium & Soft Fabric amzn.to/3q9UCOe
** All the above mentioned links are affiliate links **
#React19 #ReactHooks #UseHook #JavascriptPromises #ReactContextApi #WebDevelopment #JavaScript #ReactJS
มุมมอง: 277

วีดีโอ

React 19 Hooks - useTransition, useActionState, useFormStatus, useOptimistic in 20 mins
มุมมอง 1K3 หลายเดือนก่อน
Learn the Latest React 19 Features: Async Functions in transitions using useTransition, useActionState, useFormStatus, and useOptimistic Hooks! In this video, you’ll learn: 1. How to implement async functions inside transitions using useTransition hook. 2. How to use the useActionState hook. 3. How to use the useFormStatus hook. 4. How to use the useOptimistic hook. Timestamps - useTransition 0...
Forget memo, useMemo, useCallback - Use the React 19 Compiler 🚀
มุมมอง 2414 หลายเดือนก่อน
With the introduction of the new React compiler, it's no longer mandatory to use memo, useMemo, or useCallback for memoizing components, values, and functions respectively. In this video, we'll explore how memo and useCallback can prevent unnecessary re-renders, demonstrate the installation of the React compiler, configure it with a Vite application, and showcase how the compiler optimizes perf...
React Pro Tip : Separate Business Logic from UI using Custom Hooks
มุมมอง 1.8K11 หลายเดือนก่อน
Live Project Link - infinite-scrolling-example.vercel.app/ Github - github.com/manishboro/infinite-scrolling-example Follow me - ⚪ Instagram ➡ manish_boro ⚪ LinkedIn ➡ www.linkedin.com/in/manish-boro-692b16198/ My PC Specifications - ⚪ Graphic Card ➡ GALAX RTX 2060 amzn.to/3hmSsCZ ⚪ RAM ➡ HyperX Fury 8GB 3200MHz * 2 amzn.to/3k3Pc17 ⚪ Processor ➡ Ryzen 5 3600 amzn.to/2FkQzd0 ⚪ CPU...
Infinite Scrolling in React using Intersection Observer
มุมมอง 1.8Kปีที่แล้ว
Hey fellow developers, welcome back to a brand new video, today we'll see how to implement infinite scrolling in react using the Intersection Observer API. We'll be building a mini project to learn its implementation which is basically a products listing web-app. We'll be integrating infinite scrolling in it so that we don't fetch all the products at once and only fetch when we scroll. Live Pro...
React Pro Tip : Use Component Composition to fix Prop Drilling and Re-renders
มุมมอง 210ปีที่แล้ว
Hey fellow developers, in this video we'll see how we can fix the issue of Prop Drilling and Component re-renders in react using Component Composition. Component Composition is a pattern where we pass a component as a prop to some other components. Timestamps - Intro 00:00 What is Component Composition ? 00:30 Fixing Prop Drilling using Component Composition 03:40 Fixing the issue of Re-renders...
Storing S3 Bucket Image URLs in MongoDB using Multer, NodeJS
มุมมอง 30K3 ปีที่แล้ว
Learn to setup an AWS S3 bucket, generate API keys to access the bucket, using multer to upload images to S3, storing the returned URL in a database like MongoDB and sending a response consisting the URL back to the client. In the very last two videos we made the frontend, setup our backend server and connected to MongoDB. This is the last video of the series and here we will basically setup ou...
(#2 Backend) Profile Image Upload to Amazon S3 in React, NodeJS, MongoDB
มุมมอง 4.9K3 ปีที่แล้ว
Learn to upload images to an AWS S3 bucket using an API made in NodeJS and storing the image URL that S3 returns in a MongoDB database. You will get to know the ins and outs of connecting a React frontend and a NodeJS backend. Also learn to connect MongoDB atlas with your backend server. So in the very last video we made the frontend of our application and in this video we will continue with ou...
(#1 Frontend) Profile Image Upload to Amazon S3 in React, NodeJS, MongoDB
มุมมอง 8K3 ปีที่แล้ว
In this video I will show you how you can make a Profile Image Upload feature using React, NodeJS, MongoDB and Amazon S3. As you can see this is my current profile picture and here I have a little camera icon. When I click on this icon I get 3 options View, Change and Remove, so remove will basically remove my profile picture and change will allow me to upload a new profile picture. Timestamps ...
Crop, Zoom and Download images in React using react-easy-crop
มุมมอง 19K3 ปีที่แล้ว
So the image cropper that I am gonna show you guys how you can make is this. This is my current profile picture and when I click on choose and suppose let me select this image, well that's me of course. So as you can see when I have selected a new image a zoom bar appears. The use of the zoom bar is to just zoom the image and when the editing is done i can just click on change to upload the ima...

ความคิดเห็น

  • @Arttturslv
    @Arttturslv 20 วันที่ผ่านมา

    Thanks!

  • @DivyaPrakash-bj6zk
    @DivyaPrakash-bj6zk หลายเดือนก่อน

    Thanks a lot 🙏🏻

  • @trending5823
    @trending5823 2 หลายเดือนก่อน

    Great video. Helped me a lot. I was really confused on the promises part.

  • @fmgdoom8246
    @fmgdoom8246 2 หลายเดือนก่อน

    thanks a lot. this was exactly what i was looking for. 👍

  • @sunekaboro7350
    @sunekaboro7350 2 หลายเดือนก่อน

    Amazing explanation. Thanks a lot.

  • @dhanorkarnirav
    @dhanorkarnirav 3 หลายเดือนก่อน

    Wonderful video

  • @BudetSvobodnoy
    @BudetSvobodnoy 5 หลายเดือนก่อน

    Really useful video, thanks. I was asked about seperating business logic in an interview and I realised I don't even know what business logic is

  • @smithtang7763
    @smithtang7763 6 หลายเดือนก่อน

    I have to say it is stunning

  • @dev-suresh
    @dev-suresh 7 หลายเดือนก่อน

    Helpful tutorial. thnx

  • @lemonyth
    @lemonyth 9 หลายเดือนก่อน

    thank you for the vid,

  • @feyisayoamujoyegbe4238
    @feyisayoamujoyegbe4238 9 หลายเดือนก่อน

    Yoooo, your video was very helpful great job

  • @swaraj_ballal8612
    @swaraj_ballal8612 10 หลายเดือนก่อน

    it was a great video the only doubt i have is if the s3 bucket is set public that means anyone can see the url for s3 bucket and access the bucket wouldn't this be a security issue ?

  • @swaraj_ballal8612
    @swaraj_ballal8612 10 หลายเดือนก่อน

    what if i am not using material ui what should i use instead of snacker and is using context necessary ? will recoil do ? or is it a bad choice

  • @Mike37373
    @Mike37373 ปีที่แล้ว

    hi, can you do this with Redux Toolkit?

  • @feliwein_cc
    @feliwein_cc ปีที่แล้ว

    man you are crystal clear to explain, saw a couple of react-easy-crop tutorials and they were a mess, this is super neat, and your explanations are super good, thanks!

  • @suranjanatakoe2839
    @suranjanatakoe2839 ปีที่แล้ว

    Amazing content .This was really helpful thankyou so much💟

  • @maedesolgi8251
    @maedesolgi8251 ปีที่แล้ว

    Thank you very much for the tutorial. It was very helpful for me.

  • @siddhantkumar8432
    @siddhantkumar8432 ปีที่แล้ว

    Sikh k naukri dhundu?💩

  • @DeveloperDhiraj
    @DeveloperDhiraj ปีที่แล้ว

    I Am goind to Uplload my pics on aws s3 now

  • @coderslime
    @coderslime ปีที่แล้ว

    Is it safe to make your bucket public as it will be availble for public i have created a mern app and i dont want my data to be shared,So what do you suggest?

  • @abdullahalemon7360
    @abdullahalemon7360 ปีที่แล้ว

    brother , my need some talking with you. please response me.

  • @princeajuzie
    @princeajuzie ปีที่แล้ว

    NICE tutorial keep it up bro 👍

  • @surajchanda7992
    @surajchanda7992 ปีที่แล้ว

    Please make videos about servless node

  • @muhammadharis650
    @muhammadharis650 2 ปีที่แล้ว

    CropShape & rotation doesn't work with this download function! If anyone has any ideas, please let me know.

  • @sandeepkumar-of4wy
    @sandeepkumar-of4wy 2 ปีที่แล้ว

    I'm getting this error: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1 what should I do to fix this?

  • @albinarias1077
    @albinarias1077 2 ปีที่แล้ว

    where is 3rd video?

  • @raba650
    @raba650 2 ปีที่แล้ว

    If I want to add some image compression logic on the backend before storing it in s3 , where would be a good place to write that logic?

  • @lukebonnici5627
    @lukebonnici5627 2 ปีที่แล้ว

    Thank you so much for this amazing tutorial!! Amazing that it's your first, it was very clear and easy to follow and I achieved the outcome :) Keep on doing what you're doing!

  • @marmikpatel8387
    @marmikpatel8387 2 ปีที่แล้ว

    Great tutorial--covered a niche subject, demonstrated work for all aspects of the app (MERN + aws), provided a github repo link, included timestamps, and went at an appropriate pace! Thanks!

  • @brunooliveirasantos5241
    @brunooliveirasantos5241 2 ปีที่แล้ว

    how do I display the image in the API?, I try to use the getObject function, but it doesn't open in insomnia, but if I click on the link that S3 provides, it opens the image, I saved the location of the image in postgresql

  • @OrientalGroveWhispers
    @OrientalGroveWhispers 2 ปีที่แล้ว

    great job!!!!....could you tell me how i can send the file from "generateDownload" to a backend or s3 bucket as a file, because i can literally download the file as a jpeg but cannot get this content as a file to send directly to my backend......i will appreciate a response

    • @frontendinterviewpro
      @frontendinterviewpro 2 ปีที่แล้ว

      Hii, I have already made a video on that. You can check my last video.

  • @damifrieri
    @damifrieri 2 ปีที่แล้ว

    sabes decirme si soporta bien archivo de iphone? y recorta bien en safari porque no logro hacerlo funcionar? cuando las imagenes son de 4k me cropea la pantalla en negro eso desde un móvil.

  • @abdullahnaseem7518
    @abdullahnaseem7518 2 ปีที่แล้ว

    hi @Manish Boro please let me know how to use upload.single in middleware because i cant get more form data if i use inside controller i can only access req.files inside upload.single function cant access req.body

  • @jean_damascene
    @jean_damascene 2 ปีที่แล้ว

    Great video man, keep it going!

  • @xyz_only_10x
    @xyz_only_10x 2 ปีที่แล้ว

    great content brother.....Are you from assam?

  • @imranhussain5715
    @imranhussain5715 2 ปีที่แล้ว

    how to view image on browser without download the image from aws s3

  • @nsvot
    @nsvot 2 ปีที่แล้ว

    thank you

  • @lakshitnagar2702
    @lakshitnagar2702 2 ปีที่แล้ว

    Hi, Can you please help me how you uploaded image after crop?

  • @susantokun
    @susantokun 2 ปีที่แล้ว

    oh shit, thank u bro, u help me.

  • @istiakjaman7564
    @istiakjaman7564 2 ปีที่แล้ว

    I do not have any debit or credit cards. What should I do now? Amazon AWS account demands a valid card number to create. What can I do instead?

  • @iamdhison
    @iamdhison 2 ปีที่แล้ว

    Hi Manish, I have successfully implemented react easy crop watching your video and uploading to Azure blob container. But, the problem I am facing is it works absolutely fine on desktop browsers but not on mobile browsers. When I upload and crop image from mobile browswe eg. chrome or safari, I get completely black image stored in azure blob. Please help.

    • @frontendinterviewpro
      @frontendinterviewpro 2 ปีที่แล้ว

      Hi Dhiraj, I think the cropper code is not supported in those browsers. Will have to look into it for further information.

  • @iamdhison
    @iamdhison 2 ปีที่แล้ว

    Very helpful video mate! Thanks for this.

  • @DJSahilAIM
    @DJSahilAIM 2 ปีที่แล้ว

    You're good, I wonder you still working on the web and I have some work with you. is there any way I can contact you?

  • @mcuddy1111
    @mcuddy1111 2 ปีที่แล้ว

    nice, thank you.

  • @sourabhvaishnav8235
    @sourabhvaishnav8235 2 ปีที่แล้ว

    MANY THANKS BROTHER

  • @adad8795
    @adad8795 2 ปีที่แล้ว

    Awesome

  • @tiimaldev3686
    @tiimaldev3686 2 ปีที่แล้ว

    Hi, i can we send the cropped image to an api for example

    • @frontendinterviewpro
      @frontendinterviewpro 2 ปีที่แล้ว

      yeah sure

    • @tiimaldev3686
      @tiimaldev3686 2 ปีที่แล้ว

      @@frontendinterviewpro as a blob in a new formData()?

    • @frontendinterviewpro
      @frontendinterviewpro 2 ปีที่แล้ว

      @@tiimaldev3686 yes exactly. const formData = new FormData() formData.append("key", "cropped_image")

  • @khoilam7569
    @khoilam7569 2 ปีที่แล้ว

    how to handle error when user choose another file ex: video or mp3...

    • @frontendinterviewpro
      @frontendinterviewpro 2 ปีที่แล้ว

      you can specify an "accept" attribute to accept only desired file extensions

  • @mohammedriyaz7623
    @mohammedriyaz7623 2 ปีที่แล้ว

    Great Man. Thank you so much. I am new to AWS and learned lot of new stuff by the help of your video. Thanks Again :-)

  • @khoilam7569
    @khoilam7569 2 ปีที่แล้ว

    thanks bro