Skip to content

Instantly share code, notes, and snippets.

@Sidnioulz
Last active December 14, 2021 16:19
Show Gist options
  • Save Sidnioulz/24f892cec3cef0fc3fcfe8a945de1a13 to your computer and use it in GitHub Desktop.
Save Sidnioulz/24f892cec3cef0fc3fcfe8a945de1a13 to your computer and use it in GitHub Desktop.
LJN Reclame Architecture - Gist 12
export const Callout = (initialProps) => {
const params = useReclame(Callout, initialProps, [CalloutBase, Closable])
const { bem, props, features, state } = params
return features.closable.isClosed ? null : (
<aside className={bem.block()} {...renderRootProps(params)}>
{/* ... */}
</aside>
)
}
export default Callout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment