Hello World

This page shows how to use Gyron.js JSX syntax to create a Hello World node, and the final content of the node.

const App = <h1>Hello World</h1>

// ↓ ↓ ↓ ↓ ↓ 

import { jsx } from '@gyron/jsx-runtime'

const App = jsx('h1', {
  children: 'Hello World', 
})

The above conversion process relies on capabilities of other platforms like babel. Here JSX you can see specifics of the code transformation.

If you need to know how to initialize a project, you can come here (Initialize) to read more.

Below is an online editing experience that supports features like local real-time editing and preview. Just click the Run button and it will render the code we wrote.

index
index
TSX
LESS
资源加载中...

Extended Reading: