0.1.15 • Published 2 years ago
@smileeye.edu.vn/comment v0.1.15
SmileEye.Edu.Vn React Comment
ReactJS/NextJS Library Component for Comment. Easy to use.
Live demo
Setup
Install SmileEye.Edu.Vn React Comment with npm
npm install @smileeye.edu.vn/comment
Get 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=xxx
Usage/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 App
Support
For support, email tiennv.ppe@gmail.com
or join our Slack channel.
R&D by https://smileeye.edu.vn