JavaScript
How to use AxionJS with JavaScript
Overview
AxionJS components are primarily written in TypeScript. However, you can also opt to use them in JavaScript projects.
We recommend using TypeScript for better type safety. If you still prefer JavaScript, follow these steps.
Configure components.json
Set the tsx flag to false to generate JavaScript components:
Configure jsconfig.json
Set up path aliases for a JavaScript project: