stenciljs/core
소개
TypeScript와 Web Components 표준을 기반으로 확장 가능하고 엔터프라이즈 환경에 적합한 컴포넌트 시스템을 구축하는 도구 체인입니다. Stencil 컴포넌트는 프레임워크에 종속되지 않는 단일 코드베이스에서 React, Angular, Vue(및 기타 프레임워크)와 기존 웹 애플리케이션에 네이티브 방식으로 배포할 수 있습니다.
웹 및 앱 개발측정된 스타 증가
- in 24h
- -1
- in 7 days
- +6
- in 15 days
- +7
- in 1 month
- +11
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalStencil
A compiler for generating Web Components using technologies like TypeScript and JSX, built by the Ionic team.
Quick Start
·
Documentation
·
Contribute
·
Blog
Community:
Discord
·
Forums
·
Twitter
Getting Started
Start a new project by following our quick Getting Started guide. We would love to hear from you! If you have any feedback or run into issues using Stencil, please file an issue on this repository.
Examples
A Stencil component looks a lot like a class-based React component, with the addition of TypeScript decorators:
import { Component, Prop, h } from '@stencil/core';
@Component({
tag: 'my-component', // the name of the component's custom HTML tag
styleUrl: 'my-component.css', // css styles to apply to the component
shadow: true, // this component uses the ShadowDOM
})
export class MyComponent {
// The component accepts two arguments:
@Prop() first: string;
@Prop() last: string;
//The following HTML is rendered when our component is used
render() {
return (
<div>
Hello, my name is {this.first} {this.last}
</div>
);
}
}
The component above can be used like any other HTML element:
<my-component first="Stencil" last="JS"></my-component>
Since Stencil generates web components, they work in any major framework or with no framework at all. In many cases, Stencil can be used as a drop in replacement for traditional frontend framework, though using it as such is certainly not required.
Contributing
Thanks for your interest in contributing! Please take a moment to read up on our guidelines for contributing. We've created comprehensive technical documentation for contributors that explains Stencil's internal architecture, including the compiler, runtime, build system, and other core components in the /docs directory. Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
관련 프로젝트 살펴보기
불러오는 중…