-
Notifications
You must be signed in to change notification settings - Fork 64
Description
Hi
I've a new react app with typescript template and have the following config. I'm getting Expected 0 arguments, but got 1. Can some one please advise.
package.json
dependencies : {
"ramda": "0.27.0",
}
"devDependencies": {
"@types/ramda": "0.27.4"
}
This is my RootApp.tsx
import React from 'react'; .
import {compose} from 'ramda';.
import {withSDKContextProvider} from '@contexts/SDKContext';.
const RootApp: React.SFC = () => (.
<div> <h4>This is the home page of the app</h4> </div>.
);.
export default compose<any>( withSDKContextProvider )(RootApp);.
It is throwing error as "Expected 0 arguments, but got 1." Please note this error is not thrown in .js file.
This withSDKContextProvider is a wrapper component and this is how it is
export const withSDKContextProvider = WrappedComponent => {.
return class extends React.Component { .
render() { .
return (.
<SDKContextProvider>.
<WrappedComponent {...this.props} />.
</SDKContextProvider>.
);.
}.
};.
};.
@tycho01 / @ikatyang Can you guys or some one please advise. I'm very new to this ramda eco system