Sophie Alpert

Results 99 comments of Sophie Alpert

You can render a form from a server component or from a client component. useFormState can only be called in a client component, but it does progressively enhance (client components...

Thoughts @mattcarrollcode? I don't think this is quite the right design but the rough idea seems good. There might also be certain parts of the API that were added later....

I'm not sure what you mean. Can you provide a screenshot?

Not sure, sorry. All the logic for the different modes is in https://github.com/sebmarkbage/art.

What does `{...a, ...b, classList: [..., 'green']}` destructure into?

Sorry, yes – an object initializer. Thanks.

Sorry for the delay here. Can you be more specific about what you mean by "conditional elements in nested elements" and the exact error you're seeing?

It already doesn't depend on `react-dom`: https://github.com/reactjs/react-art/blob/d98e74e2af1d8dd1316dd78fc4b3173048e43d40/package.json#L20-L26 (That's not a practical help right now since there aren't any other DOM renderers.)

@sebmarkbage I think that's actually fine? That points to the composite.

This is a little tough. When global and window are both present but differ, global is generally the true global object. It's not clear in what cases it would be...