Skip to content

Commit

Permalink
Include partialRight import from lodash in DimensionControl example (#…
Browse files Browse the repository at this point in the history
…38088)

The `partialRight` import from lodash was missing from the example, which confused me when I was referencing it (especially having never used that particular utility before).

It would probably be better if the example didn't rely on such an opaque 3rd-party utility, but for now at least it's clear what is being used.
  • Loading branch information
cr0ybot authored Jan 20, 2022
1 parent 56e137a commit 3ccd2d5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/src/dimension-control/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ This feature is still experimental. “Experimental” means this is an early im
In a block's `edit` implementation, render a `<DimensionControl />` component.

```jsx
import { partialRight } from 'lodash';

import { registerBlockType } from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';
import { DimensionControl } from '@wordpress/components';
Expand Down

0 comments on commit 3ccd2d5

Please sign in to comment.