Using TSS react with React 16 and Typescript 3
See original GitHub issueI have a project which is stuck on React 16 and TS 3. Is there any way to use tss react with this setup?
I tried to use import { createMakeAndWithStyles } from "tss-react/compat";
However I am ending up with an error
./node_modules/tss-react/withStyles_compat.js
Module not found: Can't resolve 'react/jsx-runtime'
As I understand it this means I will have to upgrade to at least React 17?
Any help is appreciated.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
garronej/tss-react: makeStyles is dead, long live ... - GitHub
Compile error TS1023 it means that you need to update TypeScript to a version >= 4.4. If you can't use import { }...
Read more >tss-react - npm
Start using tss-react in your project by running `npm i tss-react`. ... TypeScript icon, indicating that this package has built-in type ...
Read more >Chapter 13. Developing React.js apps with TypeScript
This chapter covers. A quick intro to the React.js library; How React components use props and state; How React components communicate with each...
Read more >tss-react - npm Package Health Analysis - Snyk
Type safe CSS-in-JS API heavily inspired by react-jss For more information about how to use this package see README. Latest version published 18...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MartinSchwarzmaier
tss-react
3.7.1 is now compatible with React 16.Hey sure, This is the generated repo: https://github.com/MartinSchwarzmaier/tss-make-style