Repository navigation
[@types/react] React support for css variables is not reflected in the types #74499
Unanswered
Patrolin
asked this question in
Issues with a @types package
Replies: 2 comments
|
Thanks for the discussion about "react", some useful links for everyone: Pinging the DT module owners: @johnnyreilly, @bbenezech, @pzavolinsky, @ericanderson, @DovydasNavickas, @theruther4d, @guilhermehubner, @ferdaber, @jrakotoharisoa, @pascaloliv, @Hotell, @franklixuefei, @Jessidhia, @saranshkataria, @lukyth, @eps1lon, @zieka, @dancerphil, @dimitropoulos, @disjukr, @vhfmag, @priyanshurav, @Semigradsky, @mattpocock. |
0 replies
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
React supports css variables like
<div style={{"--foo": "1px"}} />since React v15.6.0: react/react#9302Since
@types/reactdoesn't have the correct type, you currently have to add asrc/types/react-css-vars.d.tsto your project when using this feature as a workaround:All reactions