This tutorial shows how to display the map using TomTom SDK and React.js: React.js Map Init.
Instruction:
-
Clone this repository.
-
Enter cloned directory and execute:
npm install
in order to install all dependencies.
-
Unpack TomTom Web SDK to '\public\sdk' subdirectory in project (make sure that in result you will have such file: '\public\sdk\tomtom.min.js').
-
Replace <your-api-key> in App.js with your API key
-
Run the project:
npm start
In your default browser there should be this page dispalyed: http://localhost:3000/