Skip to content

React

React just works with JSTime. JSTime supports .jsx and .tsx files out of the box. JSTime’s internal transpiler converts JSX syntax into vanilla JavaScript before execution.

function Component(props: {message: string}) {
return (
<body>
<h1 style={{color: 'red'}}>{props.message}</h1>
</body>
);
}
console.log();

JSTime implements special logging for JSX to make debugging easier.

Terminal window
$ jstime run react.tsx

Refer to Runtime > JSX for complete documentation on configuring JSX.