{"id":2247,"date":"2018-04-20T21:27:19","date_gmt":"2018-04-21T02:27:19","guid":{"rendered":"https:\/\/www.wiredprairie.us\/blog\/?p=2247"},"modified":"2018-04-20T21:27:19","modified_gmt":"2018-04-21T02:27:19","slug":"class-decorator-with-typescript-and-react","status":"publish","type":"post","link":"https:\/\/www.wiredprairie.us\/blog\/index.php\/archives\/2247","title":{"rendered":"Class Decorator with TypeScript and React"},"content":{"rendered":"
The syntax for creation and use of a class decorator written in TypeScript that works with a React.js component wasn’t obvious …, so I thought I’d document it here.<\/p>\n
The decorator takes a constructor\/class which could be used how ever you’d like (or substituted for something else entirely).<\/p>\n