
ืฉืคื ๐ฎ๐ฑ ืขืืจืืช
ืืชืืื
ืฉืืืืฉ
Add Comments to Your React App
ืื ืกืคืจืืืช React ืืจืฉืืืช ืฉื FastComments.
ืืืืื'ืืื ืืชืืืืืช ืฉื FastComments ืขืืืจ React
ืืืืจ
ืืืืืืืช 
ืชืืฆืื ืืืืืืืช ืืฉืืืืฉืื ืฉืื ืื (ืืฆื ืืื, ืขืืืื, ืืื') ืืชืืงืืืช ืืืืืืืืช. ื ืืชื ืืืืืืจ ืื ืืืืื ืืืืฆืขืืช npm install ืืืืคืขืื ืืืชื ืืืืฆืขืืช npm run start.
ืฉืืืืฉ 
ืจืืื ืืืืืื'ื ืืจืืฉื
ืืจืืื FastCommentsCommentWidget ืืืื ืืช ืืืืื'ื ืืชืืืืืช ืืื ืฉื FastComments.
ืืืืืคื ืืช "demo" ืืืื ืึพ"tenantId" ืฉืืื - ืืืื ืืื ืืืืืจ ืื ืืืื ืฉื FastComments.
ืืืืืื'ื ืชืืื ืืืจืื ืืคืฉืจืืืืช - ืจืื FastCommentsCommentWidgetConfig ืึพsrc/index.tsx.
import React, { Component } from 'react'
import {FastCommentsCommentWidget} from 'fastcomments-react'
class Example extends Component {
render() {
return <FastCommentsCommentWidget tenantId="demo" />
}
}
ืขืืืื ืืืฃ ืื ืืืื (ืืืืฉืืื SPA)
ืืื ืืขืืื ืืช ืืืฃ/ืืืืืจ ืฉืืืื ืงืฉืืจ ืฉืจืฉืืจ ืืชืืืืืช ืืฉ ืืขืืื ืืช ืคืจืืืจื ืืชืฆืืจื "urlId" ื-"url". ืจืื ืืช ืืืืืื ืืืืกืืจ ืืื.
ืืืืจ ืืฉืืื (ืชืฉืืืช ืื: ืืงืืืืช ืืืืืื ืืืืจืืคื)
ืื ืืชื ืืืืืื ืืืืจืืคื, ืจืฆืื ืืืืืืข ืืืืืื'ืืื ืฉื ืืืงืื ืืืืื ืืืืจ ืืชื ื ืืฆืืื. ืจืื examples/example-eu;
ืืืจืช, ืื ืืืืืื ืืืืืืจ ืืช region.
ืืืืื'ื ืกืคืืจืช ืืืขืจืืช
ืืจืืื FastCommentsCommentCountWidget ืืืื ืืช ืืืืื'ื ืกืคืืจืช ืืชืืืืืช ืืื ืฉื FastComments.
ืืืืืคื ืืช "demo" ืืืื ืึพ"tenantId" ืฉืืื - ืืืื ืืื ืืืืืจ ืื ืืืื ืฉื FastComments.
ืจืื ืืช FastCommentsCommentCountConfig ืึพsrc/index.tsx ืืืคืฉืจืืืืช ืืชืฆืืจื ืื ืชืืืืช.
import React, { Component } from 'react'
import {FastCommentsCommentCountWidget} from 'fastcomments-react'
class Example extends Component {
render() {
return <FastCommentsCommentCountWidget tenantId="demo" urlId="https://example.com/some-page-or-id" />
}
}
ืืจืกื ืืงืืืืช (Native)
ืืืืืืฉ ืืงืืื ืืื ืฉื FastComments, ืจืื fastcomments-react-native-sdk.
ืึพwrapper ืฉื React Native ืขืืืจ ืกืคืจืืื ืื, ืืืฉืชืืฉ ืโwebview, ืจืื fastcomments-react-native.
ืืงืืงืื ืืขืืจื?
ืื ืืชื ื ืชืงืืื ืืืขืืืช ืื ืืฉ ืืื ืฉืืืืช ืืืื ืกืคืจืืืช React, ืื ื:
ืชืจืืื
ืชืจืืืืช ืืชืงืืืืช ืืืจืื! ืื ื ืืงืจื ื-ืืืืจ ื-GitHub ืืงืืืช ืื ืืืืช ืืชืจืืื.