What components does react have?

藏色散人
Release: 2023-01-19 15:09:30
Original
1342 people have browsed it

The react components are: 1. Ant Design; 2. Bootstrap; 3. Bulma; 4. Chakra UI; 5. Material UI; 6. Semantic UI; 7. Reach UI; 8. Reakit; 9. Rebass wait.

What components does react have?

The operating environment of this tutorial: Windows 10 system, react18.0.0 version, Dell G3 computer.

What are the components of react?

Top React component library recommendation

Ant Design

What components does react have?

Project link:

  • Ant Design
  • Bundle size (from BundlePhobia): 1.2mB after minification, 349.2kB after gzip compression, reduce the size by tree shaking.

Pros:

  • AntDesign comes with extensive supporting documentation, has a community, and includes a separate project (AntDesignPro) with pre-made templates;
  • UI library that can be used to quickly design backend/internal applications.

Disadvantages:

  • Lack of accessibility;
  • Large size, expected to have a large impact on performance;
  • Pollute your CSS (expect to add !important to prevent it from styling your non-Ant components).

Bootstrap

What components does react have?
##In fact, I mainly regard Bootstrap as a UI library. It won’t win you any design awards, but it can be used to complete some edge projects and minimum viable products.

But it depends on what you want to use it for. If you're new to React, it's a great library to get started with. For more experienced developers, they might look into styled-components / Emotion.

There are two popular libraries with React bindings for Bootstrap, I personally only use Reactstrap.

Project link:

    React Bootstrap
    • ##https:///
    • Bundle size (from BundlePhobia): 111kB minified, gzip compressed 34.4kB, shaken Tree reduction volume
  • Reactstrap
    • https://
    • Bundle size (from BundlePhobia): 152.1kB after minification, 39.4kB after gzip compression, reduce the size by tree shaking
  • Advantages:

The Bootstrap library with React bindings that everyone loves;
  • Easily customizable via CSS-in-JS;
  • It’s been around long enough , so no need to worry about bugs/issues;
  • Get started quickly;
  • No jQuery dependencies as it has been completely re-implemented in React.
  • shortcoming:
  • This is Bootstrap: if you don’t customize it, your site will look like any other.

Bulma

What components does react have?

Bulma is different from other libraries introduced in this article because Bulma is pure CSS Framework, no JS required. You can choose to use classes from Bulma directly or use a wrapper library such as react-bulma-components.

Project link:

Advantages:

  • Won’t make your website look like Bootstrap;
  • Suitable for quick startup and operation;
  • Modern features (underlying is Flexbox/Grid).

Disadvantages:

  • Accessibility: There are some, but they don’t follow WCAG guidelines as strictly as other libraries.

Chakra UI

What components does react have?

Project link:

  • ChakraUI
  • Bundle size (from BundlePhobia): 326.2kB minified, 101.2kB gzipped, reduced by tree shaking

Pros:

  • Accessibility: Following WAI-ARIA guidelines, components use aria tags;
  • Powered by Discord server;
  • Easily customizable (with theme support);
  • Highly modular, so tree shaking will actually remove code you don't use.

Disadvantages:

  • Quite new.

NOTE:

It is very close to the v1 version, so please be aware of breaking changes after v0.8.0.

Material UI

What components does react have?

MaterialUI is one of those libraries that I have a love-hate relationship with. It's helped me get through some very stressful project deadlines in the past, but in the end I always got it out of the way as quickly as possible.

In the past, you could only customize MaterialUI's styles by writing JSS, but thankfully you can now override styles using styled-components and Emotion.

material-ui.com/guides/

Project link:

  • Material UI
  • Bundle size (from BundlePhobia): 325.7kB after minification, reduced gizp compression 92kB, reduced size by tree shaking

Advantages:

Disadvantages:

  • Difficult and painful to customize, but necessary (to improve visual effects);
  • Performance: Too many DOM nodes will be rendered;
  • Your app will look like a Google product (for some, this may represent a professional look).

Semantic UI

What components does react have?
##Project link:

    Semantic UI
  • Semantic-UI-React
  • Bundle size (from BundlePhobia): 300.8kB after minification, 80.9kB after gzip compression, reduce the size by tree shaking.
Advantages

    Combinable (use as prop to pass components)
  • Easy to customize
  • Easy to use documentation
  • Well-known by users (used internally by Netflix and used by products released by Amazon)
  • TypeScript support
Disadvantages

Reach UI

ReachUI is a low-level component library that allows developers to build accessible React components into their design systems. There is no package size available because each component is exported individually as its own npm package.

Reakit

Reakit is another low-level component library. Technically it's a UI library, but it doesn't come with CSS. So you still need to find a styling solution.

Bundle size (from BundlePhobia): 119.9kB minified, 32.1kB gzip compressed, reduced by tree shaking.

  • Rebass
What components does react have?

I have been following Rebass for a while. It is a powerful component library that does not come with a theme, but you can easily change the theme. For a practical example of it, see its demo:

rebassjs.org/demo

Project link:

  • Rebass
  • Bundle size (from BundlePhobia): 43kB after minification, gizp compression 14.4kB, reduce the size by tree shaking.

Tip

When writing this list, I tried to avoid including commercial design systems, but some systems (Material UI) have become widely adopted, so they are not included The list would not be complete.

I also intentionally omitted CSS-in-JS (such as styled-components and Emotion) and utility CSS systems (such as Tailwind, tailwindcss .com/), because they are not explicitly "React component libraries" but rather tools for making components.

Recommended learning: "react video tutorial"

The above is the detailed content of What components does react have?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template