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

302
Views
TypeError: Super expression must either be null or a function message when I'm trying to export named class

I'm trying to test components. I already have a default export and believe I have to use a named class for my next export. Here is the code:

export default Users;

import React from 'react';

export class UsersTest extends React.Users {
    updateState(event) {
      this.setState({
          input: event.target.value
      });
    }
    render() {
      return <div><input
        onChange={this.updateState.bind(this)}
        type="text" /></div>;
    }
  }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

The component you are trying to make extends from is undefined. React doesn't have a 'Users' property. In your case, it looks like you need to make the extension from Users, not React.Users.

about 4 years ago · Juan Pablo Isaza Report
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!