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

0.1.11 • Public • Published

@montagejs/react-waline-client

A react client component developed for the waline commenting system.

Usage

$ npm i @montagejs/react-waline-client --save

!!!important Considering the size of the package, starting from 1.0.0 version, users are required to control where and how the styles are imported, and the package no longer contains styles, but pure js code.

import Waline, { CRefProps } from '@montagejs/react-waline-client';
import { FC, useRef } from 'react';

import '@montagejs/react-waline-client/dist/style/index.css';

const WalineDemo: FC = () => {
    const ref = useRef<CRefProps>(null);

    return <Waline ref={ref} serverURL="your waline server url" />;
};

export default WalineDemo;

Note

You can also go to document address to view more information (including API information and demo address)

Keywords

waline react

Readme

Keywords

Package Sidebar

Install

npm i @montagejs/react-waline-client

Weekly Downloads

2

Version

0.1.11

License

ISC

Unpacked Size

2.33 kB

Total Files

3

Last publish

Collaborators

  • bigdreamer