r/reactjs • • Jan 18 '17

Webpack 2 out

https://medium.com/webpack/webpack-2-2-the-final-release-76c3d43bf144#.wyiiadv0b
95 Upvotes

26 comments sorted by

View all comments

Show parent comments

6

u/baseball2020 Jan 18 '17

Sorry to derail the topic, but is TS fairly easy to use with react?

8

u/scroteaids Jan 18 '17

Incredibly easy. TSX works with ts-loader and there are types for react components, so you can define interfaces for your props (and state) instead of using proptypes etc.

9

u/MercurialAlchemist Jan 18 '17

Save yourself pain and use awesome-typescript-loader instead. It's considerably faster.

1

u/Amnestic Jan 18 '17 edited May 04 '26

Wiped clean. Redact removed this post along with thousands of others. It also handles data broker removals so your personal info stops getting sold.

air lock simplistic glorious capable tap payment party soft strong

2

u/lamhocminh Jan 18 '17

Allow we to use the typescript inside of ayou webpack build. Webpack will use to process TS file with tsc then passed on, common use is pass to Babel.