Skip to main content

Installing Threaded Comments

Add Reddit-style threaded comments to your project with a single command.

Prerequisites

Before installing, make sure you’ve completed the CLI setup:
1

Initialize CLI

This creates your replyke.json configuration file.
2

Install Dependencies

Required for React (Web). The CLI will check for these.
See the CLI Setup Guide for details.

Installation Command

Run the add command in your project directory:

What Gets Installed

The CLI will:
  1. Fetch the component from the registry (based on your replyke.json config)
  2. Copy ~25 files into your project at {componentsPath}/comments-threaded/
  3. Transform imports to work with your project structure
  4. Create index.ts barrel export for clean imports
  5. Display usage examples and required dependencies

File Structure Created

Total: ~25 TypeScript/TSX files

CLI Output Example


Using the Component

After installation, import and use the component:
Make sure your app is wrapped with <ReplykeProvider>. See the Quick Start Guide for setup details.

Customization

All source files are now in your project and fully editable. Change anything you want: Change colors:
Modify layout:
See the Customization Guide for more examples.

Switching Styling Variants

If you want to switch between Tailwind and Inline Styles after installation:
1

Delete Current Components

2

Update Configuration

Edit replyke.json:
3

Re-install

This will replace your component files. If you’ve made customizations, back them up first!

Verification

After installation, verify everything works:
1

Check Files Exist

2

Try Importing

3

Run Your Dev Server

The component should render without errors.

Troubleshooting

Threaded comments are currently only available for React (Web).Check your replyke.json:
For React Native/Expo, use Social Comments instead.
Make sure your import path matches your componentsPath:
Ensure your tsconfig.json includes the components directory:
The CLI won’t overwrite existing files. To reinstall:

Next Steps

Props & API

Learn about available props

File Structure

Understand the component organization

Customization

Customize colors, layout, and functionality

Features

Explore all features