mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
typo fix
This commit is contained in:
parent
ddb0a7f208
commit
78d653a538
@ -365,7 +365,7 @@ export default function () {
|
|||||||
In cases you'd like to use a property that accepts a function and return renderable React component.
|
In cases you'd like to use a property that accepts a function and return renderable React component.
|
||||||
You should use a **template** tag that will let you do exactly that: `<template prop="propName" arguments="arg1, arg2"/>`.
|
You should use a **template** tag that will let you do exactly that: `<template prop="propName" arguments="arg1, arg2"/>`.
|
||||||
|
|
||||||
Templates can be used only as an immediate child of the component that it will be used in and all scope variable will be available in the template function.
|
Templates can be used only as an immediate child of the component that it will be used in. All scope variable will be available in the template function.
|
||||||
|
|
||||||
###### Sample:
|
###### Sample:
|
||||||
```html
|
```html
|
||||||
|
Loading…
x
Reference in New Issue
Block a user