Skip to content

Commit

Permalink
Docs: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
robisim74 committed Oct 27, 2023
1 parent e3e6b7e commit afb1842
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
6 changes: 5 additions & 1 deletion docs/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ import {
Speak,
} from 'qwik-speak';

export const Title = component$((props: TitleProps) => {
interface TitleProps {
name: string;
}

export const Title = component$<TitleProps>(props => {
return (<h1>{props.name}</h1>)
});

Expand Down
6 changes: 5 additions & 1 deletion docs/tutorial-routing-rewrite.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ import {
Speak,
} from 'qwik-speak';

export const Title = component$((props: TitleProps) => {
interface TitleProps {
name: string;
}

export const Title = component$<TitleProps>(props => {
return (<h1>{props.name}</h1>)
});

Expand Down
6 changes: 5 additions & 1 deletion docs/tutorial-routing.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,11 @@ import {
Speak,
} from 'qwik-speak';

export const Title = component$((props: TitleProps) => {
interface TitleProps {
name: string;
}

export const Title = component$<TitleProps>(props => {
return (<h1>{props.name}</h1>)
});

Expand Down
2 changes: 1 addition & 1 deletion src/routes/[...lang]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ interface TitleProps {
name: string;
}

export const Title = component$((props: TitleProps) => {
export const Title = component$<TitleProps>(props => {
return (<h1>{props.name}</h1>)
});

Expand Down

0 comments on commit afb1842

Please sign in to comment.