Birisi, "props.children" e sahip olmak için, yanıt yönlendiricisinin çalışması için neden "div" a sahip olduğumu açıklayabilir.Rendering props.children, React ile
Bu çalışır:
export default (props) => {
return (
<div id="main-template">
{props.children}
</div>
);
}
Ancak bu değildir:
export default (props) => {
return (
{props.children}
);
}
dair bir açıklamanız çok takdir edilecektir. Eğer bir çocuk düğüm varsa
ilgili bilgileri [yanıt veren dokümanlar] 'dan görebilirsiniz (https://facebook.github.io/react/tips/maximum-number-of-jsx-root-nodes.html) – Uzi