@knowgistics/comment
v1.0.2
Published
Comment for Knowgistics
Downloads
1
Readme
@knowgistics/comment
Comment for Knowgistics
Install
npm install --save @knowgistics/comment
Usage
import React from 'react'
import { Comment } from '@knowgistics/comment'
import '@knowgistics/comment/dist/index.css'
import firebase from "firebase/app";
...
const App = () => {
const [user,setUser] = React.useState(null);
React.useEffect(()=>{
firebase.auth().onAuthStateChanged(user=>setUser(user));
}, [])
return <Comment firebase={firebase} user={user} parent={post_parent_id} />;
}
export default App
License
MIT © knowgistics-coding