On this page

Component

Component name

The name of a component uses camel-case naming.

Example:

import { View, Text, Image, ... } from '@ray-js/ray'

Component property

Ray follows the React style to name the properties of a miniapp.

Ray:

<View className="view" style={{ display: 'flex' }} onTap={handleClick} />

WeChat MiniApp

<view class="view" style="display: flex;" bindtap="handleClick"></view>