Using the withColors HOC to add a background color to a block
The withColors
Higher Order Component provides our basic Footnote block with the means to add background colors from the default editor or registered theme color palette.
Footnote: A basic block using the RichText component
The Footnote block is a simple example that we’ll use as the basis of later blocks with more advanced features.