0
Students
application.js
Implement the logic of displaying Toto Robbins quotes
Each click on the button in the web view should load a new quote from the backend and display it instead of the old one. All the necessary styling has already been added, examine it on a web view.
Query to the server:
import axios from 'axios';
// Somewhere inside functions
const response = await axios.get(routes.randomQuotePath());
console.log(response.data.quote); // here goes the quote
For full access to the challenge you need a professional subscription.
A professional subscription will give you full access to all Hexlet courses, projects and lifetime access to the theory of lessons learned. You can cancel your subscription at any time.