News for hackers. Stuff that matters.
Re:If TypeScript is so great, how come all notable ReactJS p... by berfarah on Tuesday September 20, 2016 @10:52AM (#12539946)
Don't you have

  React.PropTypes.shape({
    foo: React.PropTypes.string,
    bar: React.PropTypes.shape({
      fieldNum: React.PropTypes.number
    })
  })
? I'm not saying it isn't verbose, but I'm pretty sure that as of a few months ago, this existed in React natively.
Re:If TypeScript is so great, how come all notable ReactJS p... by sync on Tuesday September 20, 2016 @11:02AM (#12540034)
PropType support is pretty iffy, see e.g. https://github.com/facebook/react/issues/1833#issuecomment-1...
Re:If TypeScript is so great, how come all notable ReactJS p... by mpawelski on Tuesday September 20, 2016 @12:08PM (#12540597)
Thanks, I didn't know that (I've been using React.js just a month, and from beginning with TypeScript)
Re:If TypeScript is so great, how come all notable ReactJS p... by ENGNR on Tuesday September 20, 2016 @12:02PM (#12540540)
You can also do ImageUser.propTypes = { image: CustomImage.propTypes }