0

React component CSS file CSS code does not work. Component file CSS has been imported।

import React from 'react';
import { Carousel } from 'react-bootstrap';
import './Banner';
1

1 Answer 1

1

Instead of using import './Banner'; use this import './Banner.css';. Or In General, use import './styleFileName.css'; to import any CSS file.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.