Last active
December 14, 2021 16:19
-
-
Save Sidnioulz/24f892cec3cef0fc3fcfe8a945de1a13 to your computer and use it in GitHub Desktop.
LJN Reclame Architecture - Gist 12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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