Best practices regarding React and its versions with various ways to accomplish the same goal

As far as I am concerned, functional components and hooks are the way to go in React, since they are more modern. However, I am surprised to see that many React references (including the official Docs themselves) still use class-based components and do not promote these new features that are supposedly better. Plus, I noticed people looking into learning React are in two minds about which of these two ways to go. So, why are the docs and other accepted examples still using older tools in React? Can one accomplish things with the old version that are still impossible with the new one?

30 thoughts on “Best practices regarding React and its versions with various ways to accomplish the same goal”

  1. Attractive section of content. I just stumbled upon your website and in accession capital to assert that I acquire
    in fact enjoyed account your blog posts. Anyway I will be subscribing to your augment and even I achievement you access consistently quickly.

    Reply
  2. Hello! This post couldn’t be written any better! Reading through this post reminds me of my
    old room mate! He always kept talking about this. I will forward
    this page to him. Pretty sure he will have a good read.
    Thanks for sharing!

    Reply
  3. I’m truly enjoying the design and layout of your website.

    It’s a very easy on the eyes which makes it much more pleasant for me to come here and visit more often. Did you hire out a developer to create your theme?
    Exceptional work!

    Reply
  4. When I originally commented I clicked the
    “Notify me when new comments are added” checkbox and now each time a comment is added I get four e-mails with the same comment.
    Is there any way you can remove me from that service? Thanks a lot!

    Reply
  5. Greetings, I do think your website may be having internet browser compatibility problems.
    When I look at your blog in Safari, it looks fine however, when opening in IE,
    it’s got some overlapping issues. I simply wanted to provide you with a quick heads
    up! Apart from that, wonderful blog!

    Reply
  6. Undeniably imagine that which you stated. Your favourite justification seemed to be on the web the easiest thing to
    consider of. I say to you, I definitely get annoyed whilst folks think about concerns that they plainly don’t know about.
    You managed to hit the nail upon the highest as smartly as outlined out the whole thing with no need side effect , people can take a signal.
    Will probably be back to get more. Thank you

    Reply
  7. You actually make it seem so easy with your presentation but I find this
    matter to be really something that I think I would never understand.
    It seems too complex and extremely broad for me. I am looking forward for
    your next post, I’ll try to get the hang of it!

    Reply
  8. Hello this is kind of of off topic but I was wanting to know if blogs use WYSIWYG editors or if you have to manually code with HTML.
    I’m starting a blog soon but have no coding experience so
    I wanted to get guidance from someone with experience. Any help would be
    enormously appreciated!

    Reply
  9. Have you ever considered publishing an ebook or guest authoring
    on other blogs? I have a blog centered on the same information you
    discuss and would love to have you share some stories/information. I know
    my visitors would enjoy your work. If you are even remotely interested, feel free to shoot
    me an e mail.

    Reply
  10. May I simply just say what a relief to uncover someone that genuinely understands what they’re discussing
    on the net. You definitely know how to bring a problem to light and make it important.
    More people ought to look at this and understand this side
    of your story. I can’t believe you’re not more popular given that you most
    certainly possess the gift.

    Reply
  11. Have you ever thought about adding a little bit more than just
    your articles? I mean, what you say is important and all.
    However imagine if you added some great visuals or video clips to give your posts more,
    “pop”! Your content is excellent but with pics and video
    clips, this site could certainly be one of the best in its field.
    Terrific blog!

    Reply
  12. Hmm is anyone else experiencing problems with the pictures on this blog loading?
    I’m trying to determine if its a problem on my end or if
    it’s the blog. Any feedback would be greatly appreciated.

    Reply

Leave a Comment