# Installation

{% hint style="warning" %}
🚧 Please note that the Flagship React SDK is designed to work exclusively with React hooks.

Our React SDK is tailored to work with React hooks. If you're looking to use our SDK without hooks, we recommend using our [Javascript SDK](/server-side/sdks/js-sdk.md)instead.
{% endhint %}

## Prerequisites

* Node.js: version 6.0.0 or later
* Npm: version 5.2.0 or later
* React: version 16.8.0 or later (Please note that our SDK is only compatible with React hooks)

## Installation Guide

To add the SDK as a dependency to your project, you can use either NPM or YARN:

{% tabs %}
{% tab title="NPM" %}

```shell
npm install @flagship.io/react-sdk
```

{% endtab %}

{% tab title="Yarn" %}

```shell
yarn add @flagship.io/react-sdk
```

{% endtab %}
{% endtabs %}

These commands will install the Flagship React SDK into your project, allowing you to start integrating Flagship features into your application.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/server-side/sdks/react/react-js-installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
