@montagejs/react-waline-client
v0.1.11
Published
react waline client
Downloads
28
Readme
@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 from1.0.0
version, users are required to control where and how the styles are imported, and the package no longer contains styles, but purejs
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)