Answer the question
In order to leave comments, you need to log in
How to convert it to JSX?
size - this is what the tag should be (h1, h2, h3, h4, h5, h6)
How can I convert this code to JSX
export const Headline = ({ children, className, size }) => {
return React.createElement(size, { className: classNames(s[size], className) }, children);
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question