vx pattern
npm install @vx/patternInspired by: http://riccardoscalco.github.io/textures/
``js
import { AreaClosed } from '@vx/shape';
import { PatternLines } from '@vx/pattern';
const PatternArea = () => {
return (
);
};
`
Like gradients, patterns are "defined." When you put down a , it's putting a attribute in the
SVG.
It's often better to think of these as variable definitions rather than true DOM elements. When you
use fill="url('#pattern')" you're referencing the pattern's id: pattern.
`js`
`js`
`js`
height={5}
width={5}
stroke={'black'}
strokeWidth={1}
orientation={['diagonal']}
/>
`js`
```
npm install --save @vx/pattern