CoursesAI WorkshopCompaniesPricingBlogNewsletter
  • Courses
  • AI Workshop
  • Companies
  • Pricing
  • Blog
  • Newsletter
Subscribe
  • Courses
  • Companies
  • Communities
  • Blog
  • Gift card
  • Newsletter
  • Help
  • Shop
  • ConfAiBot
  • Contact
  • Legal notice
  • General conditions
  • Privacy policy
  • Cookies policy

Course of Create your library in React: Carousel

Standard
Núria SorianoJavier Ferrer

By Núria Soriano y Javier Ferrer – Frontend

Learn how to develop your own JavaScript library for React by joining us in the creation of the Carousel for our website while following best practices.

Go to course

💸 First lesson available without registration 💸

Surely you have asked yourself these questions when using a library for your website's frontend:

  • What library can I use?
  • Is it worth adapting to this library? Is it extensible? Can I trust that the library will be maintained?
  • Should I use the library or implement my own solution?

We have asked ourselves these questions to decide which Carousel to use on our website. Although we don't want to reinvent the wheel… We have decided to develop our own library in React!

We will tell you why we made this decision and how we developed our npm package. In this course, you will learn:

  • 👀 What to consider when choosing an external library
  • 🚀 Create a library in React with TypeScript
  • 🧪 Develop a component using TDD with Jest and/or Cypress
  • 🎨 Local development using Storybook to see progress and document your components
  • ✨ Equip our Carousel with features
    • Supports different types of content
    • Mobile-first native scroll
    • Allow customization with CSS
    • UX and accessibility
    • Automatic publishing of new versions on npm with Github Actions

All this with a real case that we use on our website based on the Vite template for libraries that we have developed and you can use to accelerate the creation of your component.

Related Courses

  • React from 0 applying best practices
  • Best practices with CSS: Selectors
  • Mocking up Codely's website from 0
  • CSS Flex in-depth
  • Frontend Testing

Videos of the course

  • 🤔 Beyond your Carousel: The impact of external libraries
  • 🙅‍♀️ Problems with carousels
  • 🐣 Starting a library in React

  • 💊 Supports different types of content: images, video, text…
  • ↔️ Mobile-first native scroll… and without a scrollbar!
  • 🎨 Spacing between slides: to CSS what is CSS

  • ✅ How to paginate slides of different sizes
  • 🔘 Customizable and accessible buttons
  • 👀 Determine if a slide is visible: Separation of responsibilities between React and Vanilla JS

  • ➡️ Scroll Next: we move to the first invisible slide
  • ⚠️ Features we hadn't considered
  • ⬅️ Scroll Previous: iterate slides to determine how far we scroll

  • 👶 Random width of slides with object mother
  • 🎁 Simplify interaction with the component thanks to page object

  • 📙 Storybook: visual documentation
  • 📄 Readme: the entry point to your library
  • 🚀 Automate publishing on npm: Continuous Deployment

  • 🤟 Conclusions and next steps
Go to course

Related courses

Standard
Tailwind CSS: Architecture and Best Practices

🚤 Tailwind CSS: Architecture and Best Practices

Paco CastellóRafa Gómez

Learn how to structure your Tailwind CSS projects following best practices.

See course
Standard
Job offers

📄 Job offers

Javier FerrerRafa Gómez

Codely verified job offers

See course
Standard
Next.js: Open Graph Images

🖼️ Next.js: Open Graph Images

Javier FerrerRafa Gómez

Generate dynamic images in your Next.js projects for sharing on social media.

See course
See full catalogue

Pay according to your needs

lite (only monthly)

19 €
per month
  • Essential programming courses to build a solid foundation
Popular

standard

24,92 €
Discount vs monthly of 49 €
Annual payment of 299 €
per month
  • Main catalog to master writing maintainable, scalable, and testable code
  • Receive job offers verified by Codely
  • Company invoice
  • Accumulate renewal discounts

premium

41,58 €
Discount vs monthly of 89 €
Annual payment of 499 €
per month
  • Exclusive AI courses to keep you always up to date
  • Early access to new courses
  • Discount on workshops
  • Receive job offers verified by Codely
  • Company invoice
  • Accumulate renewal discounts

We won't increase the price while your subscription is active

SubscribeSign in