Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
marchbox committed Dec 3, 2024
1 parent 36f599e commit f53b2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sites/website/src/docs/getting-started/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ class HelloWorld extends FASTElement {
* containing this logic is imported, the element "hello-world" will be
* defined in the DOM with it's html, styles, logic, and tag name.
*/
HelloWorld.compose({
HelloWorld.define({
name: "hello-world",
template,
styles,
}).define(customElements);
});
```

## Add it to your project
Expand Down
4 changes: 2 additions & 2 deletions sites/website/src/pages/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ class HelloWorld extends FASTElement {
* Define your component for the browser and
* include your CSS styles and HTML template
*/
HelloWorld.compose({
HelloWorld.define({
name: "hello-world",
template: html\`<span>Hello \${x => x.name}!</span>\`,
styles: css\`
span {
color: red;
}
\`,
}).define(customElements);`}
});`}
</CodeBlock>

<h3>Add it to your project</h3>
Expand Down

0 comments on commit f53b2fa

Please sign in to comment.