# Create React App

#### Install the dependencies

Using mosaic requires two packages in your create-react-app project - the start script package and the runtime package.

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

```javascript
yarn add @tilework/mosaic-cra-scripts @tilework/mosaic
```

{% endtab %}

{% tab title="npm" %}

```javascript
npm install @tilework/mosaic-nextjs-scripts @tilework/mosaic
```

{% endtab %}
{% endtabs %}

#### Use the new scripts

Replace `react-scripts` invocations in the `scripts` block of your package.json. Such way, the build process will be launched with additional configurations (Webpack and Babel) required for Mosaic.

{% code title="package.json" %}

```javascript
{
    "scripts": {
        "start": "cra-scripts start",
        "build": "cra-scripts build",    
        "test": "cra-scripts test",      
        "link": "cra-scripts link"
    }
}
```

{% endcode %}
