-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Do we need some special treatment for styled components? At least I'm getting an unexpected error Fast refresh only works when a file only exports components. Use a new file to share constants or functions between components for styled components like AnotherReactContainer in this example:
import styled from "styled-components";
export const SomeReactComponent = () => (<div>Test</div>);
export const AnotherReactContainer = styled.div`
padding-bottom: 6px;
`;Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels