Good article, thank you for not being opinionated!
Oleg Isonen
11

The issue IMO is one of encapsulation. The example I like to point out is something like

<InlineForm>
<EmailInput />
<PasswordInput />
<LoginButton />
</InlineForm>

In this case, I want <InlineForm> to control the spacing around <LoginButton>, where <LoginButton> may appear in a different context that requires different spacing. However, with React, <InlineForm> doesn’t know which of its children is actually a button.

Like what you read? Give Jimmy Jia a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.