Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 18, 2020 05:37 pm GMT

Should you build your own React component library?

4 Advantages of Using a React Component Library, Three Musketeers and a DArtagnan

It seems that nowadays every software company is creating its own component libraries. Why? Well, technology companies around the world have realized the only way to scale their software solution is by building reusable components.

Most businesses have to develop multiple projects, and in doing so, usually need to follow the same design guidelines. By way of example, Google offers several products such as Gmail, Google Docs, Google Analytics, and several others. Youll notice that these projects all have similar user interfaces, thats because Google leverages their own component library to cut down on development time and provide a consistent experience for their users across their applications.

However, for smaller companies that lack the resources of Google, building a reusable UI component library can be timely and cost prohibitive. Big companies are developing component libraries because they can afford to have what is called platform teams that support other developers inside the company by building things like component libraries so they can build software faster.

So if youre a small or medium-sized business or especially a new startup, youll likely not have the resources available to build your own component library. Fortunately, there are several reliable and open source component libraries that already exist and most importantly are free! By using an open source library, smaller companies are able to take full advantage of the benefits of utilizing a component library without worrying about the cost or time of building their own.

To better understand the advantages of using an open source library lets take a look at some key benefits of using them.

Benefits

  • Ready To Use: a component library is a robust set of ready-made UI components such as badges, buttons, tables, and so on. With a simple import, the library is ready to be used. Often, you just have to copy and paste code snippets to make it work.

  • Time Efficient: you can mix and match the existing components to create your project so you can save time by not building everything from the beginning. It also reduces decision-making time from not having to design components APIs that work for all your use cases.

  • Developer Friendly: components are carefully designed, well-documented, and well-organized by professionals. This will help you easily understand what you need to do, and shorten development and maintenance time. Plus if youre a developer with not much design knowledge, you can effortlessly create elegant layouts and provide a nice UX for your users.

  • Consistency: adopting a component library will give you a consistent UI and UX across your project. Meaning you dont have to worry about your project having different designers working at the same time with inconsistent designs. Everything will remain uniform.

Not to mention, that since these libraries are open source they are free! Meaning no need to get buy in or invest in leveraging these libraries.

How to evaluate component libraries

Like any other tool, open-sourced component libraries arent perfect and it wont suit every use case you may have.
Based on my own experience, most of the gaps in open source component libraries are related to customization, accessibility, and testing.

So you should consider the following while evaluating component libraries:

  • Does your project demand a lot of customization?
  • Are you working on a government project that requires by law accessibility compliance?
  • How well-tested are the components in the library you selected?

While you analyze your projects needs be sure to check out these top 3 component libraries, plus one that has been getting noticed lately by the community.

Three Musketeers on the market and DArtagnan

If you decide that a component library is a good fit for your project, here are 3 of the most popular and useful React component libraries, frequently mentioned in tech blogs and platforms like medium.com and dev.to:

  • Material-UI
  • Ant Design
  • Semantic UI

These libraries have a good reputation in the community and will help you build your React project with a great UI. They have tons of stars on GitHub, a bunch of high-quality components out of the box, flexibility in customizing components, as well as some other great features. Theyre big, theyre good, and have been in the market for some time, but what about DArtagnan?

I strongly believe that we have to make room for new things, like when the old trio of musketeers accepted a new member in the iconic Alexandre Dumas novel. I believe, in this case, DArtagnan is Rainbow UI.

Rainbow UI is an open source React component library designed for enterprise-level products. Its features include internationalization, accessibility, and most importantly, they eliminate frustrating breaking changes.

Rainbow UI offers over 90 components, which is more than Material, Semantic, and Ant Design. Providing you greater options and customization for your project.

Rainbow UI also includes several modules and interactive examples so you can build a better product, faster. With the modules and interactive examples, this allows you to be ahead of the game in comparison to traditional options like our Three Musketeers listed above.

For all my latest projects, weve used Rainbow UI and arent planning on switching back anytime soon. Ultimately, you cant be wrong in any of the options listed above.

Tell us in the comment section below whats important while youre evaluating component libraries and which library you typically utilize.


Original Link: https://dev.to/yulygp/should-you-build-your-own-react-component-library-34l8

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To