Styled Components v2.1.1を使用しています。 ドキュメントには、不要なラッパーを避けるために、.attrs
コンストラクタを使用できると記載されています。参照:https://www.webpackbin.com/bins/-KpKbVG-Ed0jysHeFVVY追加の小道具を取り付けるときにコンソールで "Unknown props"警告が表示される
アム:私は、エラーを表示するようにWebPACKのビンを作成しました
Warning: Unknown props `margin`, `padding` on <input> tag. Remove these props from the element. For details, see (removed)
in input (created by styled.input)
in styled.input (created by InputContainer)
in div (created by InputContainer)
in InputContainer
:私はそれを使用しようとしたがましhttps://www.styled-components.com/docs/basics#attaching-additional-props
私は常にコンソールに次の警告を受けます私はそれを間違った方法で使用していますか、それとも問題がありますか?