Skip to main content

Category

The Category component renders a category item containing category's image, title, info and a follow button,
that allows users to follow/unfollow a category.

Usage

 import React from 'react';
import {SCContextProvider} from '@selfcommunity/react-core';
import {Category} from '@selfcommunity/react-ui';

function App() {
const conf = {
portal: '<community-path>',
session: {
type: 'OAuth',
token: '<community-token>',
refreshToken: '<community-refresh-token>',
refreshTokenEndpoint: '<community-refresh-endpoint>',
},
};
return (
<SCContextProvider conf={conf}><Category /></SCContextProvider>
);
}