Create a class component

Report a typo

You have a functional component named ProfileCard that displays user information. Convert it to a class component named ProfileCardClass and ensure it maintains the same functionality.

import React from 'react';

const ProfileCard = () => {
  return <div>User Profile Card</div>;
};

Fill in the gaps with the relevant elements
import React, {  } from "react";

 extends Component {
   {
    return <div>User Profile Card</div>;
  }
}

export default ProfileCardClass;

Create a free account to access the full topic