reactjs - Using ReactCSSTransitionGroup with .tsx -


can't figure out how use react addons typings in *.tsx files right. while seems working way import class

import reactcsstransitiongroup 'react/lib/reactcsstransitiongroup'; 

webpack build says

could not find declaration file module 'react/lib/reactcsstransitiongroup'. ... try `npm install @types/react/lib/reactcsstransitiongroup` if exists or add new declaration (.d.ts) file containing `declare module 'react/lib/reactcsstransitiongroup';` 

i have typings module installed , in next case have

import reactcsstransitiongroup  "react-addons-css-transition-group"; 

with error

.../node_modules/@types/react-addons-css-transition-group/index"' has no default export. 

i created typings.json file gave me no effect

{     "dependencies": {},     "globaldependencies": {         "react-addons-css-transition-group": "registry:dt/react-addons-css-transition-group#15.0.0+20170123203653"     } } 


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -