Skip to content

Instantly share code, notes, and snippets.

@antonjb
Created September 9, 2019 13:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save antonjb/161d731c290a51cf97e26ea6593c2d57 to your computer and use it in GitHub Desktop.
Save antonjb/161d731c290a51cf97e26ea6593c2d57 to your computer and use it in GitHub Desktop.
export const ContentBox = createRegisterableComponent(
"content-box",
(props: { content: string }, services) => (
<div>
<p>{props.content}</p>
{services.featureState.showSpecial && (
<div>Special content item - enabled with feature toggle service</div>
)}
</div>
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment