1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00
This commit is contained in:
Nir Natan 2015-08-10 00:07:52 +03:00
parent ddb0a7f208
commit 78d653a538

View File

@ -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.
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:
```html