Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion sites/website/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function () {
<h3>Install the package</h3>
<CodeBlock>npm install @microsoft/fast-element</CodeBlock>

<h3>Create a web component</h3>
<h3>Create a web component in the file `hello-world.ts`</h3>
<CodeBlock language="typescript">
{`/*
* import utilities from @microsoft/fast-element
Expand Down Expand Up @@ -106,6 +106,20 @@ HelloWorld.define({
<CodeBlock language="html">
{`<hello-world name="Earth"></hello-world>`}
</CodeBlock>

<h3>Update your tsconfig.json file to support decorators</h3>
<CodeBlock language="json">
{{
"compilerOptions": {
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "ESNext",
"moduleResolution": "bundler",
"target": "ES2020",
"useDefineForClassFields": false
}
}}
</CodeBlock>
</section>

<div role="separator" className="section-decoration"></div>
Expand Down