Stuck at 3/5


#1


Link to exercise: https://www.codecademy.com/courses/react-102/lessons/stateless-inherit-stateful-intro/exercises/stateless-component?action=lesson_resume


Error message:
Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.proto = superClass; }
^

TypeError: Super expression must either be null or a function, not undefined


My Code:

import React from 'react';

class Child extends React.component {
	render() {
		return(
    	<h1>
      	
      </h1>
    );
  }
};

Not sure what I'm doing incorrectly. Any help would be greatly appreciated. :grinning:


#2

Ok, it looks like I just needed to capitalize the word component on line 3.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.