# Installation

GoComponents React is dependent on styling from GoComponents CSS, so you will need to install both in your application.

To install these libraries, your project will have to be connected to our private npm registry.

To find out more, speak to a member of the GoComponents Team.

# Setup

To install latest versions of these libraries, navigate to the root of your app, where the package.json file is.

Run the following command using npm:

$ npm install @gocomponents/react @gocomponents/css 

Now @gocomponents/react and @gocomponents/css should appear in your package.json file as dependencies and you will be able to import them into your application.

In the example below shows how to start using React component in you app.

import React from 'react';
import "@gocomponents/css/all.min.css";
import { Button } from "@gocomponents/react";

function App() {
  return (
    <div>
      <Button text="submit" />
    </div>
  );
}

export default App;