@upstash/react-redis-cli
v0.1.0
Published
`@upstash/react-redis-cli` is a React component that provides a CLI interface to interact with Upstash Redis.
Downloads
61
Keywords
Readme
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",
}