withLDConsumer is a function which accepts an optional options object and returns a function
which accepts your React component. This function returns a HOC with flags
and the ldClient instance injected via props.
Parameters
options: ConsumerOptions = ...
If you need only the ldClient instance and not flags, then set { clientOnly: true }
to only pass the ldClient prop to your component. Defaults to { clientOnly: false }.
withLDConsumer is a function which accepts an optional options object and returns a function which accepts your React component. This function returns a HOC with flags and the ldClient instance injected via props.