Build and Publish a Custom React Hook Package on npm

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ต.ค. 2024

ความคิดเห็น • 26

  • @ghoticsporeimperiu
    @ghoticsporeimperiu 4 ปีที่แล้ว +5

    I hope that you carry-on making these great videos. Thank you for sharing your knowledge

    • @codu
      @codu  4 ปีที่แล้ว

      Thanks! No plans on stopping anytime soon 😁

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

    Thank you Codu. I hope this video will help me one day soon!

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

    Excellent tutorial. You're good at this. Keep it up !

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

      Thank you! I’ve been slacking lately because of my own business. Will get back to it soon ❤️

  • @sohamshah2127
    @sohamshah2127 3 ปีที่แล้ว +2

    Why didn't u use module bundler like rollup etc. for this?

  • @codu
    @codu  4 ปีที่แล้ว

    Sorry the low audio at the start 🤪
    Would love to know what you think!
    Leave a comment below. ❤️

    • @SajjadKhan-gh6dm
      @SajjadKhan-gh6dm 4 ปีที่แล้ว

      Hi codu can you make a video on how to detect adblocker actually i have website and i want to detect adblocker if someone visit and they have enabled adblocker and i also want to hide content

    • @codu
      @codu  4 ปีที่แล้ว +1

      Yes sure thing

    • @SajjadKhan-gh6dm
      @SajjadKhan-gh6dm 4 ปีที่แล้ว

      @@codu thank you i turned on the bell icon i will be waiting 😊

  • @bojanchurlinov1385
    @bojanchurlinov1385 3 ปีที่แล้ว

    A really great guide, thanks a lot m8, much appreciated !

  • @AlexandrePaiva-dev
    @AlexandrePaiva-dev 3 ปีที่แล้ว

    Great tutorial

  • @arpitmittalappy
    @arpitmittalappy 3 ปีที่แล้ว +3

    Any fix for this error?
    ./node_modules/react-images/index.js
    SyntaxError: C:\Users\arpit\OneDrive\Desktop\testt
    ode_modules
    eact-images\index.js: Support for the experimental syntax 'jsx' isn't currently enabled (30:9):
    Add @babel/preset-react to the 'presets' section of your Babel config to enable transformation.
    If you want to leave it as-is, add @babel/plugin-syntax-jsx to the 'plugins' section to enable parsing.
    Please help

    • @anonymoustv8604
      @anonymoustv8604 3 ปีที่แล้ว

      same :/

    • @Hex09
      @Hex09 3 ปีที่แล้ว

      i think there should be many other ways to publish a react package to npm, some have to build. i guess you should check another source.

    • @gurkanucar
      @gurkanucar 2 ปีที่แล้ว +1

      same error

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

    Where would you place the ./tests folder if you had one?

  • @willysnowman
    @willysnowman 3 ปีที่แล้ว

    Thanks You!

  • @shivampawar8421
    @shivampawar8421 3 ปีที่แล้ว

    Uncaught SyntaxError: Cannot use import statement outside a module

  • @muasx1985
    @muasx1985 3 ปีที่แล้ว

    OOT, what theme are you use?

  • @cristianpalacios8347
    @cristianpalacios8347 3 ปีที่แล้ว

    Do you know why I get this error when importing my package? "Could not find a declaration file for module"

  • @rafael.aloizio1769
    @rafael.aloizio1769 4 ปีที่แล้ว

    Unique content, superb really.
    I learned a lot from this video.. u didn't know about peerDependecie and npm use... very cool.
    do you know the package called np? it's very useful to help keep following the best practices when publishing packages to npm... like checking for tests, automating semantic versionning and a lot more.

    • @codu
      @codu  4 ปีที่แล้ว +1

      I use Lerna for package management, I'd be surprised if it doesn't work the same under the hood 🤔

    • @rafael.aloizio1769
      @rafael.aloizio1769 4 ปีที่แล้ว

      @@codu oh a friend of mine talked about Lerna other day... but i still didn't check it hahaha