skip to Main Content

styled-component's css is not applied in antd

I have a component that is written with styled-components Calling that component inside of new Styled component Attach styles Result: Styles are not applied import {Button, Form, Input} from "antd"; import styled from "styled-components"; const {TextArea} = Input; const Container…

VIEW QUESTION

React Suspense does not load stylesheet – CSS

I have the following code. <Suspense fallback={<span />}> {theme === "dark" ? <DarkTheme /> : <LightTheme />} </Suspense> DarkTheme.jsx import React from "react"; import "./dark-theme.css"; const DarkTheme = () => { console.log("Dark theme loading..."); return <></>; }; export default DarkTheme;…

VIEW QUESTION
Back To Top
Search