Answers for "react styled functional component"

0

react styled functional component

import React from "react";
import styled from "styled-components";

const index = styled(({ className }) => {
  return (
    <div className={className}>
      <h1>Hello there!</h1>
    </div>
  );
})`
  padding: 0 2rem;

  h1 {
	color: red;
  }
`;

export default index;
Posted by: Guest on March-17-2022

Code answers related to "react styled functional component"

Code answers related to "Javascript"

Browse Popular Code Answers by Language