14
18 Comments

React Hooks useState tutorial in 10 minutes (5th YT video)

Hey there!

I've just released my 5th youtube video, and decided to get started on a React series, in no particular order as it'll build up over time. I've started with the useState hook, which we can use with functional components in React.

Let me know what you think!
React Hooks useState tutorial in 10 minutes

  1. 2

    Nice and quick tutorial!

    You could also give a quick "pro" tip at the end of the video that leads to writing better React code, for example:

    For callbacks (such as onClick), you should use useCallback so that the function stays the same, otherwise the child component will always re-render, even when memoized, as the props change.

    1. 1

      Yeah I definitely could add a pro tip section to the end of the videos 💥 nice idea, thank you!!!

      Appreciate the kind words and support about the tutorial, thank you! 🙂 I enjoy sharing my knowledge in an easy to follow transferrable way so I'm glad that's shining through.

  2. 2

    Love your accent! One thing you might want to cover in another short video is how to use the update method from the immutability-helper package. It truly helps a lot to update complex data objects!

    1. 1

      Thank you so much 😱 its Northern Irish 😀😀 yes I definitely will cover this!

  3. 2

    Nice work Alan. How long does it take you to make a 10 min video tutorial typically? I'd also recommend putting a link in the video description with a link to the source code. I know it's a simple example but if I wanted to copy and paste anything I wouldn't be able to. You also reference external files like the css file but without a link to it I would think a beginner would just be confused.

    1. 2

      Thanks very much I really appreciate the kind words and support! 😀

      This particular 10 mins video took around 2 hours... Around 20-30min recording then around 1 hour or 1hr 30 editing and just prepping keywords etc for the upload!

      Perfect advice thank you so much. I'm definitely going to do this going forward. What did you think of the video?

      1. 2

        I thought the video and presentation were great. It might be cool to do a live stream of your process creating the tutorial, and then you post the edited version to youtube.

        This came to mind because of a quote from Rework about selling your byproducts:

        "When you make something, you always make something else. [...] Everything has a by-product. Observant and creative business minds spot these by-products and see opportunities."

        1. 2

          That sounds like such a cool idea! I might do this for my next one! Almost like a behind the scenes!

  4. 2

    PS what you think of the thumbnail? haha :)

    1. 2

      Looks great! Use WebDevSimplified or DevEd or DesignCourse for inspiration. By far my favorite ones I’ve seen :D

      Btw, what tool do you use to create them?

      1. 2

        I'm starting to master my keyword/tag research as well i think. I'm currently ranked 4th for "usestate tutorial"

        Image

        1. 2

          Congrats! Tbh, yours does pop out the most 👍

      2. 1

        Yeah i think i will! Don't think there's much wrong with using others as inspiration :D

        I just use canva! Pretty straight forward but i think it helps catch the eye!

        1. 2

          Cool! I've been thinking of doing some type of Youtube gig on the side. I've seen things like Figma and Canva too. Thanks for the suggestion :D

          1. 1

            Awesome!! Be sure to share with me to check it out! And no problem 🎉

Trending on Indie Hackers
After 10M+ Views, 13k+ Upvotes: The Reddit Strategy That Worked for Me! 42 comments Getting first 908 Paid Signups by Spending $353 ONLY. 24 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 20 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments Hero Section Copywriting Framework that Converts 3x 12 comments Join our AI video tool demo, get a cool video back! 12 comments