Skip to content
This repository was archived by the owner on Feb 14, 2023. It is now read-only.
This repository was archived by the owner on Feb 14, 2023. It is now read-only.

Problem with super(props) #126

@amfahrj

Description

@amfahrj

I've just started using reactn, when I switch to using

import React, {Component} from 'reactn'

in all my classes where I have

class FooBar extends Component<FooProps, FooState> {
constructor(props: FooProps) {
super(props);

I'm getting the following for error for the call to super(props)

Expected 0 arguments, but got 1.

I'm using TypeScript 3.6.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as expected.help wantedThe owner cannot resolve this on their own.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions