Skip to content

Latest commit

 

History

History
38 lines (27 loc) · 748 Bytes

README.md

File metadata and controls

38 lines (27 loc) · 748 Bytes

React Redis CLI for Upstash Redis

@upstash/react-redis-cli is a React component that provides a CLI interface to interact with Upstash Redis.

Install

Install the component via npm:

$ npm install @upstash/react-redis-cli

Usage

Here's a basic example of how to use the component:

import { RedisCli } from "@upstash/react-redis-cli"

import "@upstash/react-redis-cli/dist/index.css"

export default function Page() {
  return (
    <main style={mainStyle}>
      <RedisCli url={UPSTASH_REDIS_REST_URL} token={UPSTASH_REDIS_REST_TOKEN} />
    </main>
  )
}

const mainStyle = {
  width: "100vw",
  maxWidth: "900px",
  height: "500px",
  margin: "0 auto",
}