Need advice about which tool to choose?Ask the StackShare community!

Stencil

89
109
+ 1
0
styled-components

1.8K
601
+ 1
12
Add tool

Stencil vs styled-components: What are the differences?

What is Stencil? A reusable web component generator. Stencil combines some of the best features from traditional frameworks, but outputs 100% standards-compliant Custom Elements, part of the Web Component spec.

What is styled-components? Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress. Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress πŸ’….

Stencil and styled-components can be primarily classified as "JavaScript Framework Components" tools.

Stencil and styled-components are both open source tools. It seems that styled-components with 24.7K GitHub stars and 1.46K forks on GitHub has more adoption than Stencil with 6.03K GitHub stars and 354 GitHub forks.

Decisions about Stencil and styled-components
Luca Restagno
Co-Founder at iterspace Β· | 5 upvotes Β· 23.1K views

Storybook, along with React, styled-components, and Atomic Design, is the perfect tool to boost your front end development productivity. It helps you develop isolated presentational components with a super fast hot reload. It allows to test your props with knobs. Finally you compose, and reuse your components in your app.

You can host your storybook as a static website and share it with the other devs, so they are aware of the components already available in your library, and how to use them.

You can share the same with your UI/UX team, and converge towards a common design system.

You can even run visual regression tests on your library, with storyshots.

Which stack do you use on the Front End?

See more
Get Advice from developers at your company using StackShare Enterprise. Sign up for StackShare Enterprise.
Learn More
Pros of Stencil
Pros of styled-components
    Be the first to leave a pro
    • 11
      Very easy to use and integrate
    • 1
      Huihui

    Sign up to add or upvote prosMake informed product decisions

    What is Stencil?

    Stencil combines some of the best features from traditional frameworks, but outputs 100% standards-compliant Custom Elements, part of the Web Component spec.

    What is styled-components?

    Visual primitives for the component age. Use the best bits of ES6 and CSS to style your apps without stress πŸ’…

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Stencil?
    What companies use styled-components?
    See which teams inside your own company are using Stencil or styled-components.
    Sign up for StackShare EnterpriseLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Stencil?
    What tools integrate with styled-components?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Stencil and styled-components?
    Svelte
    If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.
    React
    Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
    Polymer
    Polymer is a new type of library for the web, designed to leverage the existing browser infrastructure to provide the encapsulation and extendability currently only available in JS libraries. Polymer is based on a set of future technologies, including Shadow DOM, Custom Elements and Model Driven Views. Currently these technologies are implemented as polyfills or shims, but as browsers adopt these features natively, the platform code that drives Polymer evacipates, leaving only the value-adds.
    React Router
    React Router is a complete routing solution designed specifically for React.js. It painlessly synchronizes the components of your application with the URL, with first-class support for nesting, transitions, and server side rendering.
    Storybook
    It is an open source tool for developing UI components in isolation for React, Vue, and Angular. It makes building stunning UIs organized and efficient.
    See all alternatives