Beginning React by Andrea Chiarelli
Author:Andrea Chiarelli [Andrea Chiarelli]
Language: eng
Format: epub
Publisher: Packt Publishing
Published: 2018-07-24T21:00:00+00:00
This component defines a list of wines, names, and descriptions.
We want to integrate our Catalog component with the wine list. Since we have created the ProductList component, we can use it as a tag in the JSX markup of the Catalog component, as shown here:
import React from 'react';
import ProductList from './ProductList';
class Catalog extends React.Component {
render() {
return <div>
<h2>Catalog</h2>
<ProductList />
</div>;
}
}
export default Catalog;
As you can see, we simply imported the ProductList component in order to make it available inside the Catalog component's module, and we used the ProductList tag where we wanted the wine list to appear.
Run npm start to launch the application. The resulting page will look like this:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7915)
Grails in Action by Glen Smith Peter Ledbrook(7882)
Azure Containers Explained by Wesley Haakman & Richard Hooper(7199)
Configuring Windows Server Hybrid Advanced Services Exam Ref AZ-801 by Chris Gill(7196)
Running Windows Containers on AWS by Marcio Morales(6736)
Kotlin in Action by Dmitry Jemerov(5299)
Microsoft 365 Identity and Services Exam Guide MS-100 by Aaron Guilmette(5267)
Microsoft Cybersecurity Architect Exam Ref SC-100 by Dwayne Natwick(4971)
Combating Crime on the Dark Web by Nearchos Nearchou(4850)
The Ruby Workshop by Akshat Paul Peter Philips Dániel Szabó and Cheyne Wallace(4535)
Management Strategies for the Cloud Revolution: How Cloud Computing Is Transforming Business and Why You Can't Afford to Be Left Behind by Charles Babcock(4494)
The Age of Surveillance Capitalism by Shoshana Zuboff(4116)
Python for Security and Networking - Third Edition by José Manuel Ortega(4095)
Learn Wireshark by Lisa Bock(3896)
The Ultimate Docker Container Book by Schenker Gabriel N.;(3757)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3573)
Blockchain Basics by Daniel Drescher(3429)
Mastering Azure Security by Mustafa Toroman and Tom Janetscheck(3426)
DevSecOps in Practice with VMware Tanzu by Parth Pandit & Robert Hardt(3421)
