The Trans Directory
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix docs for using custom components compositionally (#2044)

authored by

Garklein and committed by
GitHub
82c53a1c eceefd1d

+3 -1
+3 -1
docs/advanced/creating components.md
··· 226 226 As Quartz components are just functions that return React components, you can compositionally use them in other Quartz components. 227 227 228 228 ```tsx title="quartz/components/AnotherComponent.tsx" 229 - import YourComponent from "./YourComponent" 229 + import YourComponentConstructor from "./YourComponent" 230 230 231 231 export default (() => { 232 + const YourComponent = YourComponentConstructor() 233 + 232 234 function AnotherComponent(props: QuartzComponentProps) { 233 235 return ( 234 236 <div>