excuse me but your documentation is just confusing. I get nothing but errors. No information about supporting (just dependency) so it is very difficult to solve problems.
For the line import AddToCalendar from 'react-add-to-calendar'; I get error:
Could not find a declaration file for module 'react-add-to-calendar' ... implicitly has an 'any' type
there was similar error with import React from 'react'; too, but I solved it by installing @types/react and changing the line to import * as React from 'react'. Did I do right?
extends React.Component causes me constructors for derived classes must contain a 'super' call.
Can you help me?
how about render() { return <AddToCalendar event={this.state.event}/>; }; ?
where should be return "caught"? Do we need to use render() anywhere?
hy,
excuse me but your documentation is just confusing. I get nothing but errors. No information about supporting (just dependency) so it is very difficult to solve problems.
import AddToCalendar from 'react-add-to-calendar';
I get error:Could not find a declaration file for module 'react-add-to-calendar' ... implicitly has an 'any' type
there was similar error with
import React from 'react';
too, but I solved it by installing@types/react
and changing the line toimport * as React from 'react'
. Did I do right?extends React.Component
causes meconstructors for derived classes must contain a 'super' call
. Can you help me?how about
render() { return <AddToCalendar event={this.state.event}/>; };
?where should be
return
"caught"? Do we need to userender()
anywhere?