I'm using parcel
to bundle my code and reactstrap
to style my react
app. I have an example:
import React from "react";
import { Button } from "reactstrap";
const Layout = () => {
return (
<>
<header></header>
<Button color="danger">Danger!</Button>
</>
);
};
export default Layout;
This supposes to create a nice red button. But when I run the app with parcel
(in dev mode), it gives me a plain button, however the button is applied a classname
( btn btn-danger
) on it. Here is the result:
What's wrong with parcel
and reactstrap
? How can I get rid of this problem?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.