
Jezik 🇷🇸 Srpski (Latinica)
Početak
Korišćenje
FastComments React Library
Ovo je zvanična React biblioteka za FastComments.
Komentarski widgeti FastComments za React
Repozitorijum
Primeri 
U folderu examples naći ćete primere za razne upotrebe (tamni režim, paginacija, itd.). Svaki primer može biti podešen pomoću npm install i pokrenut sa npm run start.
Korišćenje 
Glavna komponenta widžeta
Komponenta FastCommentsCommentWidget sadrži live FastComments comment widžet.
Zamenite "demo" ispod sa vašim "tenantId" - dostupan ovde u FastComments administratorskom delu.
Widžet podržava mnogo opcija - pogledajte FastCommentsCommentWidgetConfig u src/index.tsx.
import React, { Component } from 'react'
import {FastCommentsCommentWidget} from 'fastcomments-react'
class Example extends Component {
render() {
return <FastCommentsCommentWidget tenantId="demo" />
}
}
Ažuriranje trenutne stranice (za SPA aplikacije)
Da biste ažurirali stranicu/artikal za koji je thread komentara vezan, morate ažurirati konfiguracione parametre "urlId" i "url". Pogledajte primer i objašnjenje ovde.
Region naloga (PAŽNJA: EU korisnici)
Ako ste u EU, želećete da klijent widžetima kažete u kom regionu se nalazite. Pogledajte examples/example-eu;
Inače, ne morate definisati region.
Widžet za broj komentara
Komponenta FastCommentsCommentCountWidget sadrži live FastComments comment count widžet.
Zamenite "demo" ispod sa vašim "tenantId" - dostupan ovde u FastComments administratorskom delu.
Pogledajte FastCommentsCommentCountConfig u src/index.tsx za podržane opcije konfiguracije.
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" />
}
}
Nativno
Za potpuno nativnu implementaciju FastComments-a, pogledajte fastcomments-react-native-sdk.
Za React Native omotač ove biblioteke, koji koristi webview, pogledajte fastcomments-react-native.
Need Help?
Ako naiđete na probleme ili imate pitanja u vezi React biblioteke, molimo vas da:
Contributing
Doprinosi su dobrodošli! Molimo posetite GitHub repository za smernice o doprinosima.