【发布时间】:2018-08-21 13:28:45
【问题描述】:
我使用styled-components 来设置默认链接的样式,如下所示:
import styled from 'styled-components';
import {
fontSize
} from 'styled-system';
const Link = a `
${fontSize};
color: white;
&:link {
text-decoration: none;
}
`;
export default Link;
我想为react-routers 链接组件使用完全相同的样式。我应该使用styled-components 中的css 还是有其他方法可以做到这一点?
【问题讨论】:
标签: reactjs react-router styled-components