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.
This is an example implementation of the Smarty JavaScript SDK in React.
To spin this example up and see it in action:
- Sign up for a Smarty account
- Create a website key.
- Clone this repository.
- From your terminal, navigate into the cloned repository and install dependencies with your favorite package manager:
- With NPM:
npm install
- With Yarn
yarn install
- With NPM:
- Open
src/components/Autocomplete.js
in the cloned repository, adding the website key you created earlier to line24
. - From the cloned repository folder on your terminal, run
npm run start
. This will open your browser and load the implementation demo.