Questions & Answers

Can I use JSX directly in my Deepkit controller?

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.

Yes, after installing and configuring the Deepkit template engine, you can use JSX directly in your Deepkit controller. You can write JSX code that represents your HTML templates and return them from your route methods. The template engine will automatically set the HTTP content type to text/html; charset=utf-8 when you return a JSX template.