/smartystreets-javascript-sdk-react-example

An example implementation of the SmartyStreets JavaScript SDK using the React framework.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

SMARTY DISCLAIMER: Subject to the terms of the associated license agreement, this software is freely available for your use. This software is FREE, AS IN PUPPIES, and is a gift. Enjoy your new responsibility. This means that while we may consider enhancement requests, we may or may not choose to entertain requests at our sole and absolute discretion.

Smarty JavaScript SDK - React Example

This is an example implementation of the Smarty JavaScript SDK in React.

To spin this example up and see it in action:

  1. Sign up for a Smarty account
  2. Create a website key.
  3. Clone this repository.
  4. From your terminal, navigate into the cloned repository and install dependencies with your favorite package manager:
    • With NPM: npm install
    • With Yarn yarn install
  5. Open src/components/Autocomplete.js in the cloned repository, adding the website key you created earlier to line 24.
  6. From the cloned repository folder on your terminal, run npm run start. This will open your browser and load the implementation demo.