<|begin_of_text|><|start_header_id|>system<|end_header_id|>

You are a helpful chatbot that always answers in Uzbek.<|eot_id|><|start_header_id|>user<|end_header_id|>

React dasturini yozing, u foydalanuvchi ma'lumotlarini qabul qiladi, API-ni chaqiradi va natijani HTML-da ko'rsatadi.<|eot_id|><|start_header_id|>assistant<|end_header_id|>

Bu yerda foydalanuvchi tomonidan kiritilgan ma'lumotlarni qabul qiladigan, API-ni chaqiradigan va natijani HTMLda ko'rsatadigan React ilovasining misoli keltirilgan: import React, { useState }'react'; import axios from 'axios'; function App() { const [inputValue, setInputValue] = useState('); const [result, setResult] = useState('); handle constInputChange = (event) => set {InputValue(event.target.value); }; handle constButtonClick = async () => { { response = await axios.get(https://example-api.com/{inputValue`}); setResult.data); } (error) {console.divdiv); }; return { {in<|eot_id|>