@smileeye.edu.vn/comment
v0.1.15
Published
ReactJS/NextJS Library Component for Comment. Easy to use.
Readme
SmileEye.Edu.Vn React Comment
ReactJS/NextJS Library Component for Comment. Easy to use.
Live demo
https://link-to-demo
Setup
Install SmileEye.Edu.Vn React Comment with npm
npm install @smileeye.edu.vn/commentGet API key at https://link-to-project
Add API key at .env file.
// ReactJS .env or Antd Pro .env
REACT_APP_CODEBY_COMMENT_URL=https://package-comment.codeby.com
REACT_APP_CODEBY_COMMENT_TOKEN=xxx
REACT_APP_CODEBY_COMMENT_API=xxx
// NextJS .env
NEXT_PUBLIC_CODEBY_COMMENT_URL=https://package-comment.codeby.com
NEXT_PUBLIC_CODEBY_COMMENT_TOKEN=xxx
NEXT_PUBLIC_CODEBY_COMMENT_API=xxxUsage/Examples
import {CommentBase} from "@smileeye.edu.vn/comment";
import {useEffect, useState} from "react";
import "@smileeye.edu.vn/comment/src/smileeye.edu.vn-comment.min.css";
const App = () => {
const person = {
"specialId": "1",
"name": "Tien Nguyen",
"avatar": "https://picsum.photos/300"
};
const unique = {
"url": "http://uniqueUrl"
}
return (
<>
<CommentBase person={person} unique={unique}/>
</>
)
}
export default AppSupport
For support, email [email protected] or join our Slack channel.
R&D by https://smileeye.edu.vn
