Closed FicoPrieto closed 4 years ago
@FicoPrieto It can be used as follows.
.test-component
| {children}
import React from 'react';
export default function (props = {}) {
const { children } = props;
return (
<div className="test-component">{children}</div>
);
}
Great, that worked! Thanks!
Is there a way to make this work with
{props.children}
as shown in the docs?I tried using the following
pug
layout:and this error was thrown: