Skip to content

Fix flatten issue#16

Open
sschottler wants to merge 1 commit intopomber:masterfrom
sschottler:flatten-fix
Open

Fix flatten issue#16
sschottler wants to merge 1 commit intopomber:masterfrom
sschottler:flatten-fix

Conversation

@sschottler
Copy link
Copy Markdown

Fix for #11 so jsx like this won't break rendering:

<ul>
   {todos.map(todo => <li>{todo.title}</li>)}
</ul>

...children coerces non array values into an array, but when children is already an array, it incorrectly turns it into an array where the first item is an array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant