In the below example, how to apply background-color:green to the <Test/> component without having to edit the <Test/> component directly?
/** @jsx jsx */
import { css, jsx } from "@emotion/core";
import React from "react";
function Test() {
return (
<div
css={css`
height: 100px;
width: 100px;
background-color: aqua;
`}
>
Text
</div>
);
}
function App() {
return (
<Test
css={css`
height: 400px;
width: 400px;
background-color: green;
`}
/>
);
}
classNameproperty. If yourTest-component doesn't accept aclassName, emotion can't change its stylesclassnameargument insidefunction Test( {classname} )?