anephenix/ui

View on GitHub
src/components/button/Button.jsx

Summary

Maintainability
A
0 mins
Test Coverage
F
50%
import React, { forwardRef } from 'react';

const Button = forwardRef(function button(
    { className, text, name, onClick },
    ref
) {
    return (
        <button name={name} ref={ref} className={className} onClick={onClick}>
            {text}
        </button>
    );
});

export default Button;