react-hanzi-lookup
TypeScript icon, indicating that this package has built-in type declarations

1.0.7 • Public • Published

react-hanzi-lookup

HanziLookupJS, build for React. React functional component for Chinese handwriting recognition. Easy set-up.

Let your users write on a canvas for real-time prediciton of Chinese character.

Getting Started

To begin using this component, follow these steps:

1. Install the library:

npm i react-hanzi-lookup

2. Import Hanzi in the React component and render:

import {Hanzi} from 'react-hanzi-lookup'

3. Instantiate a Hanzi component:

<Hanzi handleChange={(predictedCharacters: string[]) => {
    // Handle predictedCharacters array here
}} />

Contributing

Contributions are welcome! If you'd like to contribute to the project, feel free to fork the repository and submit a pull request.

Credits

Thank you to gugray for the non-React specific version of Hanzi Lookup. https://github.com/gugray/HanziLookupJS

License

This project is licensed under the MIT License.

Package Sidebar

Install

npm i react-hanzi-lookup

Weekly Downloads

5

Version

1.0.7

License

ISC

Unpacked Size

16.1 kB

Total Files

15

Last publish

Collaborators

  • junwunpm