'TypeError:- Class extends value undefined is not a constructor or null [closed]

I have just started learning React. I am getting this error in localhost:3000 when I am running the server through node.js

TypeError: Class extends value undefined is not a constructor or null

Index.js

import React , {Compnonent} from "react";

class lottery extends Compnonent {
    render() {
        return (
            <h1>Decentralized Lottery Application</h1>
        )
    }
}

export default lottery;


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source