import React from 'react';
import "./redtext.css";
const RedT = (props) => {
let redTextStyle = {
color:"red",
postion:"relative",
display:"block",
"::before": {
position: "absolute",
content: "test",
width: "100%",
height: "20px",
backgroundColor: "red",
right: 0,
bottom: 0,
zIndex: -1,
}
}
return (
<span style={redTextStyle}
>
{props.children}
</span>
);
};
export default RedT;