Getting Started

Evy Stately is a state management library for your product insurance offers.

Main features

  • communicates with Evy's API
  • manages offers states: retrieved / selected / attached
  • stores the attached offers across pages

📘

Browser support

The Evy Stately supports the next versions of the most popular browsers: Chrome(>=67), Firefox(>=60), Edge(>=17), Safari(>=11.1), and Internet Explorer (version 11 only).

Installation

You can install an Evy stately package using a package manager like npm or yarn.

npm install @getevy/stately

yarn add @getevy/stately

Initialization

Configuration should happen as early as possible in your application's lifecycle.

Once it's done, the Stately is ready for further action.

import { EvyStately } from '@getevy/stately';

const statelyInstance = new EvyStately({ 
  apiKey: 'API_KEY', 
  apiUrl: 'API_URL', 
});