Architecture

Higher-order component pattern

Wrap a component type with a new component that adds behavior or markup.

Formal Syntax & Structure

react syntaxreact
const Wrapped = withWorkshopNotice(Supplies);

Working Example

Example Snippetreact
Define the wrapper outside rendering.
React Reference