2 ms·
I think it is, at least in some cases. I've found that Elm/React are like this with dynamic elements. First, you code the component you want with hardcoded sty
by zogrodea 3y ago
I think it is, at least in some cases. I've found that Elm/React are like this with dynamic elements.
First, you code the component you want with hardcoded styles and data. Then, you extract that to a function. Finally, you pull out the harcoded styles and data into parameters for that functoin. Now you have a reusable component.