There's no need to filter optional props on uppercase components when calling createElement, they can (and should) be passed as is. This will allow to get rid of array->list->array conversion and filtering on each element creation call.
The only exception is key property, which is handled by React.
There's no need to filter optional props on uppercase components when calling
createElement
, they can (and should) be passed as is. This will allow to get rid of array->list->array conversion and filtering on each element creation call.The only exception is
key
property, which is handled by React.Questions:
ref
?