Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

145
Views
made a button component in react js buts keeps throwing error
import './button.styles.scss';

const BUTTON_TYPE_CLASSES = {
  google:'google-sign-in',
  inverted:'inverted',
};

const Button = ({children, buttonType, ...otherProps}) => {
  return (
    <button 
      className={`button-container${BUTTON_TYPE_CLASSES[buttonType]}`}
    >
    </button>
  );
};

export default Button;

but keeps getting error

react-jsx-dev-runtime.development.js:97 Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check your code at sign-up-form.component.jsx:102.
    at SignUpForm (http://localhost:3000/static/js/bundle.js:544:86)
    at div
    at SignIn
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!