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;
`;
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 componentsfor styled components likeAnotherReactContainerin this example: