Setting up Autoaddress for your React projects
Autoaddress can be implemented in your React projects by using our Autoaddress React component. Starting with the basic requirements, you can follow the step-by-step instructions below.
Requirements
- Node.js with Node Package Manager (npm).
- A React app project with JSX support.
- Autoaddress Licence Key.
Step 1 : Installing the package
The package can be installed by using the following command in the project root folder using a terminal or command-line interface.
$ npm install "@autoaddress.ie/autoaddress-react"
Step 2 : Importing the Autoaddress component
In your React project, you can import the Autoaddress component using the code below.
import Autoaddress from '@autoaddress.ie/autoaddress-react';
;
Step 3 : Instantiating the component
After importing the component you can instantiate it by using the code below in the "return" part of your function.
return (
<Autoaddress
licencekey = "your_key"
vanityMode = {true}
addressProfile = "Demo5LineV2"
country = "ie"
language = "en"
/>
);