Questions & Answers

How do I install and configure the Deepkit template engine in my TypeScript project?

Template
50 up-votes
Warning: The answer is generated by an artificial intelligence. It might not be correct.
To adjust rating, open the thread in Discord and click on the up/down vote button.

To install and configure the Deepkit template engine in your TypeScript project, you need to adjust the tsconfig.json file. In the compilerOptions, set the jsx value to "react-jsx" and the jsxImportSource value to "@deepkit/template". You also need to make sure you have "experimentalDecorators": true and "emitDecoratorMetadata": true enabled. Then you can use JSX directly in your controller.