UNPKG

react-github-buttons

Version:

React Components for dynamic buttons for github repo's star, fork etc.

22 lines (21 loc) 528 B
/** * @function Fork */ import * as PropTypes from 'prop-types'; import * as React from 'react'; export interface IPropTypes { owner: string; repo: string; } export interface IState { forks_count: number; } export default class Fork extends React.Component<IPropTypes, IState> { static propTypes: { owner: PropTypes.Validator<string>; repo: PropTypes.Validator<string>; }; constructor(props: IPropTypes); componentDidMount(): void; render(): JSX.Element; }