NextJs 编译出现 Warning: Received `true` for a non-boolean attribute `rotate`.

在使用styled-component,声明属性时,总出现标题显示的Warning,虽然只是警告,但看着比较难受。所以还是解决下。

看这个问题的描述,很难知道关键信息。经过了尝试,发现是因为rotate为自带属性,所以要把styled组件自定义的属性名rotate修改成其他的属性名。


Powered by Sairin