Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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>
);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jsx #hover #react
ADD COMMENT
Topic
Name
6+9 =