https://github.com/kayviaharriott/react-vite-recommended-lists
A recommended lists component for react vite.
https://github.com/kayviaharriott/react-vite-recommended-lists
component list npm react recommended vite
Last synced: about 2 months ago
JSON representation
A recommended lists component for react vite.
- Host: GitHub
- URL: https://github.com/kayviaharriott/react-vite-recommended-lists
- Owner: KayviaHarriott
- Created: 2024-08-27T17:21:42.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-28T23:57:48.000Z (9 months ago)
- Last Synced: 2025-02-12T09:57:59.375Z (3 months ago)
- Topics: component, list, npm, react, recommended, vite
- Language: TypeScript
- Homepage: https://kayviaharriott.github.io/react-vite-recommended-lists/
- Size: 10.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-vite-recommended-lists
## About the Package π
The Recommended List App is a React application designed to display a list of items with interactive components. Each item is displayed in a card format, featuring a thumbnail image, a title, subtitle, and a button to perform an action. Users can also remove items from the list. This app showcases the use of React hooks, Material-UI components, and basic state management.## Demos & Previews πΉ
You can find a demo of it here on [Netlify](https://react-vite-recommended-lists.netlify.app) or [CodePen](https://codepen.io/KayviaHarriott/pen/OJewxEP)
[](https://app.netlify.com/sites/react-vite-recommended-lists/deploys)
**_(NOTE: As of Aug-28-2024, the links for demo and previews are broken and being reloaded as package is updated)_**
Hereβs an example of how the component looks:

## How to Install the Package πΏ
To install this package:
```
npm i react-vite-recommended-lists
```or
```
yarn add react-vite-recommended-lists
```## How to Use π
To use this package in your React repo, you'll first have to install the package (as shown above). Then follow the steps below:
1. Import the component to your file:
```tsx
import { RecommendedList } from "react-vite-recommended-lists";
```2. Create the RecommendedLists component with the necessary attributes:
```tsx
console.log("Hello world!")}
/>
```Together (in your component), they should look something like this:
```tsx
"use client"; //if you're using NEXTJS
import { RecommendedList } from "react-vite-recommended-lists";export default function Home() {
const list = [
{
subheading: "Technology",
title: "#AppleEvent",
subtitle: "18.6K posts",
thumbnail: "imgs/thumbnails/technology.png",
}
{
subheading: "Fashion",
title: "#OOTD",
subtitle: "25.2K posts",
thumbnail: "imgs/thumbnails/fashion.png",
},
];
return (
console.log("Hello world!")}
/>
);
}
```## How to Start Up the Repo π
If you'd like to branch of or use the entire repo, follow these steps:
1. Clone the repo:
```
git clone https://github.com/KayviaHarriott/react-vite-recommended-lists.git
```2. Install the dependecies:
```
npm i
```3. Start up the development:
```
npm run dev
```4. Open to see in your browser, which is usually on [localhost:5173](http://localhost:5173)
## Dependencies π§±
This project relies on the following dependencies:
- **React**: A JavaScript library for building user interfaces.
- **Material-UI**: A popular React UI framework that provides pre-built components.
- **TypeScript** (if used): A superset of JavaScript that adds static typing.