2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Pattern
|
2024-09-28 13:13:48 +02:00
|
|
|
sidebar_position: 80
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
|
|
|
Last but not least, we've arrived at the level of the pattern itself.
|
|
|
|
The pattern is a container that holds all your parts, along with the configuration
|
|
|
|
and the store.
|
|
|
|
|
2022-02-20 14:35:50 +01:00
|
|
|
In reality, your pattern will be a _constructor_ that takes the user's settings as
|
2021-08-25 16:09:31 +02:00
|
|
|
input and will return a new instance of your pattern.
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
That pattern instance will have a `draft()` method which will do the actual work of
|
|
|
|
drafting the pattern. Once drafted, you can either call the `render()` method on
|
2022-12-25 21:13:48 -08:00
|
|
|
the pattern instance, or pass it to our React component to render it in the browser.
|