New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@usecloudstate/react-core

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@usecloudstate/react-core

This is the core package for a React application on usecloudstate.io.

Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@usecloudstate/react-core

This is the core package for a React application on usecloudstate.io.

Installation

You can install the package with:

npm install @usecloudstate/react-core

Usage

Initiate CloudStateClient

We recommend you create a cloudState instance in a separate file and import it in your application.

// src/cloudState.js
import { CloudStateClient } from '@usecloudstate/react-core';

export const cloudState = new CloudStateClient("<YOUR APP ID>", {
  onAuthSuccess: () => {
    // for example, redirect to a dashboard
    history.location.replace('/dashboard');
  },
  onAuthRequest: () => {
    // for example, redirect to a login page
    history.location.replace('/login');
  },
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

FAQs

Package last updated on 24 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts