Skip to content

New containerProps prop#255

Merged
gpbl merged 3 commits intomasterfrom
container-props
Feb 14, 2017
Merged

New containerProps prop#255
gpbl merged 3 commits intomasterfrom
container-props

Conversation

@gpbl
Copy link
Owner

@gpbl gpbl commented Feb 14, 2017

This new prop remove the previous behavior of props being spread to the container's <div /> element by default. Instead, developers should use containerProps:

<DayPicker 
-    data-my-thing="foo" 
+    containerProps={ 'data-my-thing': 'foo' }
/>

This will avoid to loop over the prop types to remove the invalid ones, improving rendering performance as suggested here.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling cd980ab on container-props into ecc30be on master.

@gpbl gpbl merged commit 45d5e5e into master Feb 14, 2017
@gpbl gpbl deleted the container-props branch February 14, 2017 21:45
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.

2 participants