Package Exports
- @montagejs/react-waline-client
- @montagejs/react-waline-client/es/index.js
- @montagejs/react-waline-client/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@montagejs/react-waline-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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)