Skip to content

Commit ba899e9

Browse files
authored
Update render-function.md
Misspelled FComponent when writing props. don't worry.
1 parent 3fc552d commit ba899e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/guide/extras/render-function.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ function FComponent(props:FComponentProps, context:SetupContext<Events>) {
775775
```tsx
776776
import type { FunctionalComponent } from 'vue'
777777

778-
type FComponentProps = {
778+
type FComponent = {
779779
  message:string
780780
}
781781

@@ -793,7 +793,7 @@ const FComponent:FunctionalComponent<FComponentProps,Events> = (props, context)
793793

794794
}
795795

796-
FComponentProps.props={
796+
FComponent.props={
797797
message:{
798798
type:String,
799799
required:true

0 commit comments

Comments
 (0)