@lcui/react
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

@lcui/react

(中文/English)

A React library for LCUI application development, providing TypeScript type declarations and React version preset components that need to be used in conjunction with @lcui/cli.

Installation

npm install -D @lcui/react react @types/react

Usage

import { Text, TextInput } from '@lcui/react';
import styles from './app.module.css';

export default function App() {
  return (
    <div className={styles.app}>
      <Text>Hello, World!</Text>
      <TextInput placeholder="Please input..." />
    <div>
  );
}

LCUI is not a browser engine, and functions such as text display and input need to be implemented by specific components. Therefore, there may be the following differences in JSX writing:

  <div className={styles.app}>
-   Hello, World!
+   <Text>Hello, World!</Text>
-   <input placeholder="Please input..." />
+   <TextInput placeholder="Please input..." />
  <div>

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @lcui/react

Weekly Downloads

2

Version

0.3.0

License

MIT

Unpacked Size

56.6 kB

Total Files

23

Last publish

Collaborators

  • lc-soft