Framer X » Code Components » Including other components

Including other components

You can place other components inside a Code Component.In fact, composition, building an interface with reusable, versatile components, is the essence of React. (See this blog post by Koen Bok as an introduction.)Simple: just use props.childrenBy simply writing props.children somewhere in your component’s return statement, it will automatically receive a connector.export function ChildrenComp(props) { return […]
To access this page, you must purchase Framer X book - Monthly or Framer X book - Yearly.