Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem using tsx with mithril #2199

Closed
evnix opened this issue Aug 4, 2018 · 1 comment
Closed

problem using tsx with mithril #2199

evnix opened this issue Aug 4, 2018 · 1 comment

Comments

@evnix
Copy link

evnix commented Aug 4, 2018

I am trying to port a mithril based js app to typescript.
The final thing to get right is JSX props. (JSX works as expected when not using props)

Container.tsx:17:38 - error TS2339: Property 'data' does not exist on type '{}'.
items.push(<Item data={myData}/>);

I solved it by using https://github.com/andraaspar/mithril-tsx-component

Is there any other way I could achieve the same result without using the above 3rd party component?

@spacejack
Copy link
Contributor

@evnix Glad you got something working. Typescript-related issues should probably be posted here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants