Answers for "jsx .style on hover react"

0

jsx .style on hover react

import styles from './Button.css'

const MyButton = ({children, onClick, type='primary', ...rest }) =>
(
    <button
        onClick   = {onClick}
        className = {styles.primary}
        {...rest}
    >
        {children}
    </button>
);
Posted by: Guest on January-15-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language