-


Product List for {this.props.name}



Download 8,6 Mb.
Pdf ko'rish
bet35/37
Sana18.01.2022
Hajmi8,6 Mb.
#383795
1   ...   29   30   31   32   33   34   35   36   37
Bog'liq
Designing Applications with Spring Boot 2.2 and React JS Step-by-step guide to design and develop intuitive full stack web applications by Dinesh Rajput (z-lib.org)

Product List for {this.props.name}
       
Refresh the web browser and see the following updated UI:
Figure 9.9: Adding the New Product button
As you can see in the preceding screenshot, there is a button named New Product . When you click on this button, it opens the modal form as
shown in the following screenshot:
Figure 9.10: Adding the New Product Form with the Skylight React Component
You can see the updated product form with the Skylight React component.


Using the Toast message React component
You can also use the React-toastify component to generate a feedback message for any deletion or creation of the product. Let us install the
React-toastify component using the following command:
npm install react-toastify --save
Let’s implement the toast messages with the delete functionality. We need to import ToastContainer, toast, and the style sheet to start using
React-toastify. Let’s add the following import code to the ProdosTable.js file:
import { ToastContainer, toast } from ‘react-toastify’;
import ‘react-toastify/dist/ReactToastify.css’;
In the preceding code, we imported the ToastContainer container toast from React-toastify. The ToastContainer container is the component for
showing toast messages. We need to define ToastContainer inside the render() method as shown in the following code:
return (
   
   

Download 8,6 Mb.

Do'stlaringiz bilan baham:
1   ...   29   30   31   32   33   34   35   36   37




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish