feat(types): deny unknown attributes on component by default (#1614)
close #1519
This commit is contained in:
@@ -171,8 +171,9 @@ describe('with object props', () => {
|
||||
eee={() => ({ a: 'eee' })}
|
||||
fff={(a, b) => ({ a: a > +b })}
|
||||
hhh={false}
|
||||
// should allow extraneous as attrs
|
||||
// should allow class/style as attrs
|
||||
class="bar"
|
||||
style={{ color: 'red' }}
|
||||
// should allow key
|
||||
key={'foo'}
|
||||
// should allow ref
|
||||
|
||||
Reference in New Issue
Block a user