<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://classes.engineering.wustl.edu/cse330/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yiming</id>
	<title>CSE330 Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://classes.engineering.wustl.edu/cse330/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Yiming"/>
	<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Special:Contributions/Yiming"/>
	<updated>2026-11-15T21:45:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.4</generator>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2483</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2483"/>
		<updated>2018-01-08T20:16:39Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Grading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, your website will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all times, there should be a search bar on your page. It can dynamically display the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;br /&gt;
We will be grading the following aspects of your work. There are 55 points total.&lt;br /&gt;
&lt;br /&gt;
'''Assignments must be committed to Bitbucket by the end of class on the due date (commit early and often). Failing to commit by the end of class on the due date will result in a 0.''' &lt;br /&gt;
&lt;br /&gt;
___________&lt;br /&gt;
&lt;br /&gt;
#	'''Completed ReactJS Doc quick start Tutorial (5 points)'''&lt;br /&gt;
#	 '''Completed resturant web application (50 points)'''&lt;br /&gt;
#*	Setup React Appcorrectly (5 points)&lt;br /&gt;
#*	restaurant website (45 points):&lt;br /&gt;
#**  Header and Footer are working(8 points)&lt;br /&gt;
#**	All cuisines are listed in tables, with names, descriptions and prices properly displayed. At no time should your website be refrreshed. (10 points)&lt;br /&gt;
#**	Search bar, working correctly (12 points)&lt;br /&gt;
#***  Include a search bar(2 points)&lt;br /&gt;
#***  Dynamic search works(10 points)&lt;br /&gt;
#**	Nevigation link works, and takes you to another view (10 points)&lt;br /&gt;
#*	BootStrapping&lt;br /&gt;
#**	Site looks good, intuitive, and professional (5 points)&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2482</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2482"/>
		<updated>2018-01-08T20:13:27Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Grading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, your website will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all times, there should be a search bar on your page. It can dynamically display the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;br /&gt;
We will be grading the following aspects of your work. There are 55 points total.&lt;br /&gt;
&lt;br /&gt;
'''Assignments must be committed to Bitbucket by the end of class on the due date (commit early and often). Failing to commit by the end of class on the due date will result in a 0.''' &lt;br /&gt;
&lt;br /&gt;
___________&lt;br /&gt;
&lt;br /&gt;
#	'''Completed ReactJS Doc quick start Tutorial (5 points)'''&lt;br /&gt;
#	 '''Completed resturant web application (50 points)'''&lt;br /&gt;
#*	Setup React Appcorrectly (5 points)&lt;br /&gt;
#*	restaurant website (45 points):&lt;br /&gt;
#**  Header and Footer are working(8 points)&lt;br /&gt;
#**	All cuisines are listed in tables, with names, descriptions and prices properly displayed. At no time should your website be refrreshed. (10 points)&lt;br /&gt;
#**	Search bar, working correctly (12 points)&lt;br /&gt;
#***  Include a search bar(2 points)&lt;br /&gt;
#***  Dynamic search works(10 points)&lt;br /&gt;
#**	Nevigation link works, and takes you to another view (10 points)&lt;br /&gt;
#*	BootStrapping&lt;br /&gt;
#**	Site looks good, intuitive, and professional (5 points)&lt;br /&gt;
&lt;br /&gt;
___________&lt;br /&gt;
&lt;br /&gt;
'''Creative Project Rubric'''&lt;br /&gt;
You will also be submitting your Creative Project rubric alongside Module 7.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2481</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2481"/>
		<updated>2018-01-08T20:11:58Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Grading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, your website will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all times, there should be a search bar on your page. It can dynamically display the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;br /&gt;
We will be grading the following aspects of your work. There are 55 points total.&lt;br /&gt;
&lt;br /&gt;
'''Assignments must be committed to Bitbucket by the end of class on the due date (commit early and often). Failing to commit by the end of class on the due date will result in a 0.''' &lt;br /&gt;
&lt;br /&gt;
___________&lt;br /&gt;
&lt;br /&gt;
#	'''Completed ReactJS Doc quick start Tutorial (5 points)'''&lt;br /&gt;
#	 '''Completed resturant web application (50 points)'''&lt;br /&gt;
#*	Setup React Appcorrectly (5 points)&lt;br /&gt;
#*	restaurant website (45 points):&lt;br /&gt;
#**  Header and Footer are working(8 points)&lt;br /&gt;
#**	All cuisines are listed in tables, with names, descriptions and prices properly displayed. At no time should your website be refrreshed. (10 points)&lt;br /&gt;
#**	Search bar, working correctly (12 points)&lt;br /&gt;
#***  Include a search bar(2 points)&lt;br /&gt;
#***  Dynamic search works(10 points)&lt;br /&gt;
#**	Nevigation link works, and takes you to another view (10 points)&lt;br /&gt;
#*	BootStrapping&lt;br /&gt;
#**	Site looks good, intuitive, and professional (5 points)&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2480</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2480"/>
		<updated>2018-01-08T20:11:35Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Grading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, your website will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all times, there should be a search bar on your page. It can dynamically display the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;br /&gt;
We will be grading the following aspects of your work. There are 55 points total.&lt;br /&gt;
&lt;br /&gt;
'''Assignments must be committed to Bitbucket by the end of class on the due date (commit early and often). Failing to commit by the end of class on the due date will result in a 0.''' &lt;br /&gt;
&lt;br /&gt;
___________&lt;br /&gt;
&lt;br /&gt;
#	'''Completed ReactJS Doc quick start Tutorial (5 points)'''&lt;br /&gt;
#	 '''Completed resturant web application (50 points)'''&lt;br /&gt;
#*	Setup React Appcorrectly (5 points)&lt;br /&gt;
#*	restaurant website (45 points):&lt;br /&gt;
#**  Header and Footer are working(8 points)&lt;br /&gt;
#**	All cuisines are listed in tables, with names, descriptions and prices properly displayed. At no time should your website be refrreshed. (10 points)&lt;br /&gt;
#**	Search bar, working correctly (12 points)&lt;br /&gt;
#***  Include a search bar(2points)&lt;br /&gt;
#***  Dynamic search works(10 points)&lt;br /&gt;
#**	Nevigation link works, and takes you to another view (10 points)&lt;br /&gt;
#*	BootStrapping&lt;br /&gt;
#**	Site looks good, intuitive, and professional (5 points)&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2479</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2479"/>
		<updated>2018-01-08T20:11:22Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Grading */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, your website will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all times, there should be a search bar on your page. It can dynamically display the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;br /&gt;
We will be grading the following aspects of your work. There are 55 points total.&lt;br /&gt;
&lt;br /&gt;
'''Assignments must be committed to Bitbucket by the end of class on the due date (commit early and often). Failing to commit by the end of class on the due date will result in a 0.''' &lt;br /&gt;
&lt;br /&gt;
___________&lt;br /&gt;
&lt;br /&gt;
#	'''Completed ReactJS Doc quick start Tutorial (5 points)'''&lt;br /&gt;
#	 '''Completed resturant web application (50 points)'''&lt;br /&gt;
#*	Setup React Appcorrectly (5 points)&lt;br /&gt;
#*	restaurant website (45 points):&lt;br /&gt;
#**  Header and Footer are working(8 points)&lt;br /&gt;
#**	All cuisines are listed in tables, with names, descriptions and prices properly displayed. At no time should your website be refrreshed. (10 points)&lt;br /&gt;
#**	Search bar, working correctly (12 points)&lt;br /&gt;
#***  Include a search bar(2points)&lt;br /&gt;
#***  Dynamic search works(10 points)&lt;br /&gt;
#**	Nevigation link works, and takes you to another view (10 points)&lt;br /&gt;
#*	BootStrapping&lt;br /&gt;
#**	Site looks good, intuitive, and professional ( 5 points)&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2478</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2478"/>
		<updated>2017-12-13T01:44:44Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Use React-Bootstrap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development.&lt;br /&gt;
#Bootstrap includes many HTML and CSS based design templates, including typography, forms, buttons, tables, navigation, modals, image carousels, as well as optional JavaScript plugins.&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs.&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great, and every front end developer should learn it. However, not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those who don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops.&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap, such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera).&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named &amp;quot;button&amp;quot;, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2477</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2477"/>
		<updated>2017-12-13T01:43:02Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Why Bootstrap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development.&lt;br /&gt;
#Bootstrap includes many HTML and CSS based design templates, including typography, forms, buttons, tables, navigation, modals, image carousels, as well as optional JavaScript plugins.&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs.&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great, and every front end developer should learn it. However, not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those who don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops.&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap, such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera).&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named button, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2476</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2476"/>
		<updated>2017-12-13T01:37:17Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Why Bootstrap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development.&lt;br /&gt;
#Bootstrap includes many HTML and CSS based design templates, including typography, forms, buttons, tables, navigation, modals, image carousels, as well as optional JavaScript plugins.&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs.&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great, and every front end developer should learn it. However, not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those who don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms, etc. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera)&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named button, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2475</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2475"/>
		<updated>2017-12-13T01:36:38Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Why Bootstrap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development.&lt;br /&gt;
#Bootstrap includes many HTML and CSS based design templates, including typography, forms, buttons, tables, navigation, modals, image carousels, as well as optional JavaScript plugins.&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs.&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great, and every front end developer should learn it. However, not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms, etc. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera)&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named button, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2474</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2474"/>
		<updated>2017-12-13T01:36:09Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* What is Bootstrap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development.&lt;br /&gt;
#Bootstrap includes many HTML and CSS based design templates, including typography, forms, buttons, tables, navigation, modals, image carousels, as well as optional JavaScript plugins.&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs.&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great and every front end developer should learn it. However not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms, etc. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera)&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named button, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2473</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2473"/>
		<updated>2017-12-13T01:35:31Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* What is Bootstrap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development&lt;br /&gt;
#Bootstrap includes many HTML and CSS based design templates, including typography, forms, buttons, tables, navigation, modals, image carousels, as well as optional JavaScript plugins&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great and every front end developer should learn it. However not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms, etc. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera)&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named button, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2472</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2472"/>
		<updated>2017-12-13T01:35:07Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* What is Bootstrap */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development&lt;br /&gt;
#Bootstrap includes many HTML and CSS based design templates including typography, forms, buttons, tables, navigation, modals, image carousels, as well as optional JavaScript plugins&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great and every front end developer should learn it. However not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms, etc. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera)&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named button, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2471</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2471"/>
		<updated>2017-12-13T01:32:32Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, your website will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all times, there should be a search bar on your page. It can dynamically display the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2470</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2470"/>
		<updated>2017-12-13T01:31:00Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, your website will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2469</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2469"/>
		<updated>2017-12-13T01:30:22Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each page will include different food introductions. When you switch between these two pages, do not change your page header and footer. Here is what your page should look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2468</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2468"/>
		<updated>2017-12-13T01:29:18Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2467</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2467"/>
		<updated>2017-12-13T01:26:01Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Individual Assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look at what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata relevant to your app. This file is used to give information to npm that allows npm to identify the project as well as handle the dependencies of your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2466</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2466"/>
		<updated>2017-12-13T01:23:49Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Individual Assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2465</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2465"/>
		<updated>2017-12-13T01:21:22Z</updated>

		<summary type="html">&lt;p&gt;Yiming: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time without reloading the page. React aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Routing&amp;diff=2464</id>
		<title>Routing</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Routing&amp;diff=2464"/>
		<updated>2017-12-12T07:07:59Z</updated>

		<summary type="html">&lt;p&gt;Yiming: Created page with &amp;quot;You are not required to use Routing in this assignment, however, if you were going to build a full-stack web app, knowing how to use route is always nice.  Routing is how Web...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;You are not required to use Routing in this assignment, however, if you were going to build a full-stack web app, knowing how to use route is always nice.&lt;br /&gt;
&lt;br /&gt;
Routing is how Web API matches a URI to an action. A key difference between PHP and web frameworks is in how routing occurs.&lt;br /&gt;
&lt;br /&gt;
In PHP, if you went to an address like http://www.example.com/welcome.php then Apache would run the script located at, for example, /var/www/html/welcome.php.&lt;br /&gt;
&lt;br /&gt;
However, frameworks do not generally work the same way. This is in part because of the MVC architecture. Most frameworks use a router instead that routes arbitrary URLs to controllers. Scripts are never &amp;quot;loaded&amp;quot; directly through Apache.&lt;br /&gt;
&lt;br /&gt;
Basically, there are two kinds of routing: static routing and dynamic routing. React routing is one of static routings, which occurs when a router uses a manually-configured routing entry. React Router bootstraps the routes from /node_modules/routes.js file, matches them against a URL, and then executes the appropriate callback handler.&lt;br /&gt;
&lt;br /&gt;
Here is an example how routing works in React:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
  import React, { Component } from 'react';&lt;br /&gt;
  import { BrowserRouter as Router, Route} from 'react-router-dom';&lt;br /&gt;
  const Main = () =&amp;gt; (&lt;br /&gt;
        &amp;lt;div&amp;gt;&lt;br /&gt;
            &amp;lt;Route path=&amp;quot;/something&amp;quot; component={SomeComponent} /&amp;gt;&lt;br /&gt;
            &amp;lt;Route path=&amp;quot;/otherthing&amp;quot; component={OtherComponent} /&amp;gt;&lt;br /&gt;
        &amp;lt;/div&amp;gt;);&lt;br /&gt;
   ReactDOM.render(&amp;lt;Router&amp;gt;&amp;lt;Main /&amp;gt;&amp;lt;/Router&amp;gt;, document.getElementById('root')); &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In server.js (back-end): &lt;br /&gt;
  &lt;br /&gt;
  var express = require('express');&lt;br /&gt;
  var app = express();&lt;br /&gt;
  var path = require('path');&lt;br /&gt;
  app.get('/something',(req,res) =&amp;gt; {&lt;br /&gt;
    	someFunction =&amp;gt; {&lt;br /&gt;
    		someCallBack;&lt;br /&gt;
    	})&lt;br /&gt;
    });&lt;br /&gt;
 &lt;br /&gt;
What we are doing here is to generates a route entry containing two routes, when the route path is changed to the specific value, it will display the corresponding component and call the corresponding callback function in the back end.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2463</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2463"/>
		<updated>2017-12-12T07:07:51Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Readings and Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2462</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2462"/>
		<updated>2017-12-12T07:07:13Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Readings and Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2461</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2461"/>
		<updated>2017-12-12T07:06:25Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2460</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2460"/>
		<updated>2017-12-12T07:04:39Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Readings and Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Routing]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2452</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2452"/>
		<updated>2017-12-12T06:16:24Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Readings and Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2451</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2451"/>
		<updated>2017-12-12T06:15:25Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Individual Assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created.&lt;br /&gt;
&lt;br /&gt;
package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2450</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2450"/>
		<updated>2017-12-12T06:14:58Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2449</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2449"/>
		<updated>2017-12-12T06:14:38Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Individual Assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js is the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2448</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2448"/>
		<updated>2017-12-12T06:14:06Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Individual Assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt; You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2447</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2447"/>
		<updated>2017-12-12T06:13:45Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Individual Assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creating your React app, it should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into what you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2446</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2446"/>
		<updated>2017-12-12T06:13:03Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Individual Assignment */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2445</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2445"/>
		<updated>2017-12-12T06:12:29Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
*[[Route]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2444</id>
		<title>MERN</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2444"/>
		<updated>2017-12-12T06:11:42Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Brief Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Full Stack ==&lt;br /&gt;
In web development, full stack refers to all the layers involved in building a working web application, including data modeling, server, network, user interface, business logic etc. In this module we will focus on the technical layers that are essential for a successful web product, which translates to front end and back end skills.&lt;br /&gt;
&lt;br /&gt;
'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation layer) to the back-end (data access layer). The stack is made up of:&lt;br /&gt;
*React&lt;br /&gt;
*Express.js &lt;br /&gt;
*Node.js: &lt;br /&gt;
*MongoDB: &lt;br /&gt;
 &lt;br /&gt;
== Brief Introduction ==&lt;br /&gt;
'''React'''&lt;br /&gt;
&lt;br /&gt;
React is a JavaScript library, developed by Facebook and Instagram, to build interactive, reactive user interfaces. It serves as a front-end web app framework. In this module, we will focus on React.&lt;br /&gt;
&lt;br /&gt;
'''Express'''&lt;br /&gt;
&lt;br /&gt;
Express is a Back-end web application framework running on top of Node.js. Express can handle the routing of requests to the right parts of your applicatioN (or to different apps running in the same environment). You can run the app's full business logic within Express and even generate the final HTML to be rendered by the user's browser. At the other extreme, Express can be used to simply provide a [https://en.wikipedia.org/wiki/Representational_state_transfer REST] API – giving the front-end app access to the resources it needs e.g., the database. For more information, take a look at [https://expressjs.com/ Express.js official website].&lt;br /&gt;
&lt;br /&gt;
'''Node.js'''&lt;br /&gt;
&lt;br /&gt;
Node.js is a JavaScript runtime environment – lets you implement your application back-end in JavaScript. For more information, please review [[Node.JS]].&lt;br /&gt;
&lt;br /&gt;
'''MongoDB'''&lt;br /&gt;
&lt;br /&gt;
MongoDB is a NoSQL database – used by your back-end application to store its data as JSON documents. &lt;br /&gt;
MongoDB is an open-source, document database that provides persistence for your application data and is designed with both scalability and developer agility in mind. Instead of storing data in rows and columns as one would with a relational database, MongoDB stores JSON documents in collections with dynamic schemas.&lt;br /&gt;
MongoDB's document data model makes it easy for you to store and combine data of any structure, without giving up sophisticated validation rules, flexible data access, and rich indexing functionality. You can dynamically modify the schema without downtime – vital for rapidly evolving applications. For more information, take a look at [https://www.mongodb.com/ MongoDB official website].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2443</id>
		<title>MERN</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2443"/>
		<updated>2017-12-12T06:11:03Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Brief Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Full Stack ==&lt;br /&gt;
In web development, full stack refers to all the layers involved in building a working web application, including data modeling, server, network, user interface, business logic etc. In this module we will focus on the technical layers that are essential for a successful web product, which translates to front end and back end skills.&lt;br /&gt;
&lt;br /&gt;
'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation layer) to the back-end (data access layer). The stack is made up of:&lt;br /&gt;
*React&lt;br /&gt;
*Express.js &lt;br /&gt;
*Node.js: &lt;br /&gt;
*MongoDB: &lt;br /&gt;
 &lt;br /&gt;
== Brief Introduction ==&lt;br /&gt;
'''React'''&lt;br /&gt;
&lt;br /&gt;
React is a JavaScript library, developed by Facebook and Instagram, to build interactive, reactive user interfaces. It serves as a front-end web app framework. In this module, we will focus on React.&lt;br /&gt;
&lt;br /&gt;
'''Express'''&lt;br /&gt;
&lt;br /&gt;
Express is a Back-end web application framework running on top of Node.js. Express can handle the routing of requests to the right parts of your applicatioN (or to different apps running in the same environment). You can run the app's full business logic within Express and even generate the final HTML to be rendered by the user's browser. At the other extreme, Express can be used to simply provide a [https://en.wikipedia.org/wiki/Representational_state_transfer REST] API – giving the front-end app access to the resources it needs e.g., the database. For more information, take a look at [https://expressjs.com/ Express.js official website].&lt;br /&gt;
&lt;br /&gt;
'''Node.js'''&lt;br /&gt;
&lt;br /&gt;
Node.js is a JavaScript runtime environment – lets you implement your application back-end in JavaScript. For more information, please review [[Node.JS]].&lt;br /&gt;
&lt;br /&gt;
'''MongoDB'''&lt;br /&gt;
&lt;br /&gt;
MongoDB is a NoSQL database – used by your back-end application to store its data as JSON documents. &lt;br /&gt;
MongoDB is an open-source, document database that provides persistence for your application data and is designed with both scalability and developer agility in mind. MongoDB bridges the gap between key-value stores, which are fast and scalable, and relational databases, which have rich functionality. Instead of storing data in rows and columns as one would with a relational database, MongoDB stores JSON documents in collections with dynamic schemas.&lt;br /&gt;
MongoDB's document data model makes it easy for you to store and combine data of any structure, without giving up sophisticated validation rules, flexible data access, and rich indexing functionality. You can dynamically modify the schema without downtime – vital for rapidly evolving applications. For more information, take a look at [https://www.mongodb.com/ MongoDB official website].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2442</id>
		<title>MERN</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2442"/>
		<updated>2017-12-12T06:09:46Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Brief Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Full Stack ==&lt;br /&gt;
In web development, full stack refers to all the layers involved in building a working web application, including data modeling, server, network, user interface, business logic etc. In this module we will focus on the technical layers that are essential for a successful web product, which translates to front end and back end skills.&lt;br /&gt;
&lt;br /&gt;
'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation layer) to the back-end (data access layer). The stack is made up of:&lt;br /&gt;
*React&lt;br /&gt;
*Express.js &lt;br /&gt;
*Node.js: &lt;br /&gt;
*MongoDB: &lt;br /&gt;
 &lt;br /&gt;
== Brief Introduction ==&lt;br /&gt;
'''React'''&lt;br /&gt;
&lt;br /&gt;
React is a JavaScript library, developed by Facebook and Instagram, to build interactive, reactive user interfaces. It serves as a front-end web app framework. In this module, we will focus on React.&lt;br /&gt;
&lt;br /&gt;
'''Express'''&lt;br /&gt;
&lt;br /&gt;
Express is a Back-end web application framework running on top of Node.js. Express can handle the routing of requests to the right parts of your applicatioN (or to different apps running in the same environment). You can run the app's full business logic within Express and even generate the final HTML to be rendered by the user's browser. At the other extreme, Express can be used to simply provide a [https://en.wikipedia.org/wiki/Representational_state_transfer REST] API – giving the front-end app access to the resources it needs e.g., the database. For more information, take a look at [https://expressjs.com/ here].&lt;br /&gt;
&lt;br /&gt;
'''Node.js'''&lt;br /&gt;
&lt;br /&gt;
Node.js is a JavaScript runtime environment – lets you implement your application back-end in JavaScript. For more information, please review [[Node.JS]].&lt;br /&gt;
&lt;br /&gt;
'''MongoDB'''&lt;br /&gt;
&lt;br /&gt;
MongoDB is a NoSQL database – used by your back-end application to store its data as JSON documents. &lt;br /&gt;
MongoDB is an open-source, document database that provides persistence for your application data and is designed with both scalability and developer agility in mind. MongoDB bridges the gap between key-value stores, which are fast and scalable, and relational databases, which have rich functionality. Instead of storing data in rows and columns as one would with a relational database, MongoDB stores JSON documents in collections with dynamic schemas.&lt;br /&gt;
MongoDB's document data model makes it easy for you to store and combine data of any structure, without giving up sophisticated validation rules, flexible data access, and rich indexing functionality. You can dynamically modify the schema without downtime – vital for rapidly evolving applications.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2441</id>
		<title>MERN</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2441"/>
		<updated>2017-12-12T06:08:54Z</updated>

		<summary type="html">&lt;p&gt;Yiming: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Full Stack ==&lt;br /&gt;
In web development, full stack refers to all the layers involved in building a working web application, including data modeling, server, network, user interface, business logic etc. In this module we will focus on the technical layers that are essential for a successful web product, which translates to front end and back end skills.&lt;br /&gt;
&lt;br /&gt;
'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation layer) to the back-end (data access layer). The stack is made up of:&lt;br /&gt;
*React&lt;br /&gt;
*Express.js &lt;br /&gt;
*Node.js: &lt;br /&gt;
*MongoDB: &lt;br /&gt;
 &lt;br /&gt;
== Brief Introduction ==&lt;br /&gt;
'''React'''&lt;br /&gt;
React is a JavaScript library, developed by Facebook and Instagram, to build interactive, reactive user interfaces. It serves as a front-end web app framework. In this module, we will focus on React.&lt;br /&gt;
&lt;br /&gt;
'''Express'''&lt;br /&gt;
Express is a Back-end web application framework running on top of Node.js. Express can handle the routing of requests to the right parts of your applicatioN (or to different apps running in the same environment). You can run the app's full business logic within Express and even generate the final HTML to be rendered by the user's browser. At the other extreme, Express can be used to simply provide a [https://en.wikipedia.org/wiki/Representational_state_transfer REST] API – giving the front-end app access to the resources it needs e.g., the database. For more information, take a look at [https://expressjs.com/ here].&lt;br /&gt;
&lt;br /&gt;
'''Node.js'''&lt;br /&gt;
Node.js is a JavaScript runtime environment – lets you implement your application back-end in JavaScript. For more information, please review [[Node.JS]].&lt;br /&gt;
&lt;br /&gt;
'''MongoDB'''&lt;br /&gt;
MongoDB is a NoSQL database – used by your back-end application to store its data as JSON documents. &lt;br /&gt;
MongoDB is an open-source, document database that provides persistence for your application data and is designed with both scalability and developer agility in mind. MongoDB bridges the gap between key-value stores, which are fast and scalable, and relational databases, which have rich functionality. Instead of storing data in rows and columns as one would with a relational database, MongoDB stores JSON documents in collections with dynamic schemas.&lt;br /&gt;
MongoDB's document data model makes it easy for you to store and combine data of any structure, without giving up sophisticated validation rules, flexible data access, and rich indexing functionality. You can dynamically modify the schema without downtime – vital for rapidly evolving applications.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2440</id>
		<title>MERN</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2440"/>
		<updated>2017-12-12T05:54:31Z</updated>

		<summary type="html">&lt;p&gt;Yiming: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation layer) to the back-end (data access layer). The stack is made up of:&lt;br /&gt;
*React&lt;br /&gt;
*Express.js: Back-end web application framework running on top of Node.js. &lt;br /&gt;
Express can handle the routing of requests to the right parts of your applicatioN (or to different apps running in the same environment). You can run the app's full business logic within Express and even generate the final HTML to be rendered by the user's browser. At the other extreme, Express can be used to simply provide a [https://en.wikipedia.org/wiki/Representational_state_transfer REST] API – giving the front-end app access to the resources it needs e.g., the database. For more information, please go [https://expressjs.com/ here].&lt;br /&gt;
*Node.js: JavaScript runtime environment – lets you implement your application back-end in JavaScript. For more information, please go [[Node.JS here]]&lt;br /&gt;
*MongoDB: Document database – used by your back-end application to store its data as JSON documents. MongoDB is an open-source, document database that provides persistence for your application data and is designed with both scalability and developer agility in mind. MongoDB bridges the gap between key-value stores, which are fast and scalable, and relational databases, which have rich functionality. Instead of storing data in rows and columns as one would with a relational database, MongoDB stores JSON documents in collections with dynamic schemas.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2439</id>
		<title>MERN</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2439"/>
		<updated>2017-12-12T05:54:10Z</updated>

		<summary type="html">&lt;p&gt;Yiming: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation layer) to the back-end (data access layer). The stack is made up of:&lt;br /&gt;
*React&lt;br /&gt;
*Express.js: Back-end web application framework running on top of Node.js. Express can handle the routing of requests to the right parts of your applicatioN (or to different apps running in the same environment). You can run the app's full business logic within Express and even generate the final HTML to be rendered by the user's browser. At the other extreme, Express can be used to simply provide a [https://en.wikipedia.org/wiki/Representational_state_transfer REST] API – giving the front-end app access to the resources it needs e.g., the database. For more information, please go [https://expressjs.com/ here].&lt;br /&gt;
*Node.js: JavaScript runtime environment – lets you implement your application back-end in JavaScript. For more information, please go [[Node.JS here]]&lt;br /&gt;
*MongoDB: Document database – used by your back-end application to store its data as JSON documents. MongoDB is an open-source, document database that provides persistence for your application data and is designed with both scalability and developer agility in mind. MongoDB bridges the gap between key-value stores, which are fast and scalable, and relational databases, which have rich functionality. Instead of storing data in rows and columns as one would with a relational database, MongoDB stores JSON documents in collections with dynamic schemas.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2438</id>
		<title>MERN</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=MERN&amp;diff=2438"/>
		<updated>2017-12-12T05:46:43Z</updated>

		<summary type="html">&lt;p&gt;Yiming: Created page with &amp;quot;'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation l...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;'''MERN''' is a set of Open Source components that together, provide an end-to-end framework for building dynamic web applications; starting from the front-end (presentation layer) to the back-end (data access layer). The stack is made up of:&lt;br /&gt;
*React&lt;br /&gt;
*Express.js: Back-end web application framework running on top of Node.js.&lt;br /&gt;
*Node.js: JavaScript runtime environment – lets you implement your application back-end in JavaScript. Recall the &lt;br /&gt;
*MongoDB&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2437</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2437"/>
		<updated>2017-12-12T05:35:42Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Style */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;br /&gt;
&lt;br /&gt;
== Grading ==&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2436</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2436"/>
		<updated>2017-12-12T05:34:58Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[[MERN]]&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2435</id>
		<title>Bootstrap</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=Bootstrap&amp;diff=2435"/>
		<updated>2017-12-12T05:34:10Z</updated>

		<summary type="html">&lt;p&gt;Yiming: Created page with &amp;quot;===What is Bootstrap === #Bootstrap is a free front-end framework for faster and easier web development #Bootstrap includes HTML and CSS based design templates for typography,...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;===What is Bootstrap ===&lt;br /&gt;
#Bootstrap is a free front-end framework for faster and easier web development&lt;br /&gt;
#Bootstrap includes HTML and CSS based design templates for typography, forms, buttons, tables, navigation, modals, image carousels and many other, as well as optional JavaScript plugins&lt;br /&gt;
#Bootstrap also gives you the ability to easily create responsive designs&lt;br /&gt;
&lt;br /&gt;
===Why Bootstrap ===&lt;br /&gt;
#Easy to use: CSS Pre-processing is great and every front end developer should learn it. However not everyone is using it. Bootstrap offers less files for those of us who know how to use CSS, but it also provides the plain old CSS file for those don’t want to use CSS pre-processing.&lt;br /&gt;
#Responsive features: Bootstrap's responsive CSS adjusts to phones, tablets, and desktops&lt;br /&gt;
#Basic and extensive HTML elements: A website has many different elements such as headings, lists, tables, buttons, forms, etc. All these fundamental HTML elements have been styled and enhanced in Bootstrap. There are also extensive components covered in Bootstrap such as Dropdowns, Button Groups, Navigation Bar, Alerts.&lt;br /&gt;
#Browser compatibility: Bootstrap is compatible with all modern browsers (Chrome, Firefox, Internet Explorer, Safari, and Opera)&lt;br /&gt;
&lt;br /&gt;
=== React-Bootstrap ===&lt;br /&gt;
React-Bootstrap is a library of reusable front-end components, built for React. For more reference, please go [https://react-bootstrap.github.io/ here].&lt;br /&gt;
&lt;br /&gt;
== Install React-Bootstrap ==&lt;br /&gt;
You can get React-Bootstrap from npm:&lt;br /&gt;
  npm install --save react-bootstrap&lt;br /&gt;
Include the following code in your public/index.html:&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;node_modules/bootstrap/dist/css/bootstrap.css&amp;quot;&amp;gt;&lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css&amp;quot;&amp;gt;&lt;br /&gt;
If you want to use bootstrap themes, you should also include this one: &lt;br /&gt;
  &amp;lt;link rel=&amp;quot;stylesheet&amp;quot; href=&amp;quot;https://maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap-theme.min.css&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Use React-Bootstrap ==&lt;br /&gt;
Let's try the following code in your src/App.js file:&lt;br /&gt;
  import {Button} from 'react-bootstrap';&lt;br /&gt;
  &amp;lt;Button bsStyle=&amp;quot;success&amp;quot; bsSize=&amp;quot;small&amp;quot; onClick={someCallback}&amp;gt;&lt;br /&gt;
  Some button&lt;br /&gt;
  &amp;lt;/Button&amp;gt;&lt;br /&gt;
What we are doing here is to import a bootstrap component named &amp;quot;Button&amp;quot; from &amp;quot;react-bootstrap&amp;quot;, and set the style to &amp;quot;success&amp;quot; and the size to &amp;quot;small&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Another way to use React-Bootstrap is to write directly in Javascript:&lt;br /&gt;
  var button = ReactBootstrap.Button({&lt;br /&gt;
  bsStyle: &amp;quot;success&amp;quot;,&lt;br /&gt;
  bsSize: &amp;quot;large&amp;quot;,&lt;br /&gt;
  children: &amp;quot;Register&amp;quot;&lt;br /&gt;
  });&lt;br /&gt;
  React.render(button, mountNode);&lt;br /&gt;
What we are doing here is to create a component named button, and set its style to &amp;quot;success&amp;quot;, size to &amp;quot;large&amp;quot; and name to &amp;quot;Register&amp;quot;. &lt;br /&gt;
&lt;br /&gt;
Explore more bootstrap components at [https://react-bootstrap.github.io/components.html here].&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2434</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2434"/>
		<updated>2017-12-12T04:58:07Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Tutorial */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
*[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts.&lt;br /&gt;
*[[Bootstrap]]&lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2433</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2433"/>
		<updated>2017-12-12T04:57:23Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Style */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts. &lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;br /&gt;
Finally, use CSS and React-Bootstrap to make the site look pretty. Go [[React-Bootstrap here]] for the React-Bootstrap guide.&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2432</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2432"/>
		<updated>2017-12-12T04:49:34Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts. &lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
&lt;br /&gt;
=== Style ===&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2431</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2431"/>
		<updated>2017-12-12T04:46:28Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts. &lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  &lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef.', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  }];&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2430</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2430"/>
		<updated>2017-12-12T04:44:38Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts. &lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef. Variations &lt;br /&gt;
  exist with other ingredients such as water chestnuts, onions, other vegetables, or wood ear fungus. ', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth. This combination of dried red chilli peppers, sichuan peppercorns, spicy bean &lt;br /&gt;
  paste, scallion, ginger, garlic, cinnamon bark and star anise is potent and does amazing things to our taste buds.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  },];&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2429</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2429"/>
		<updated>2017-12-12T04:43:50Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts. &lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var Appetizers = [&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
         description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
         price: '$9.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Dandan Noodle',&lt;br /&gt;
         description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
         price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'ChongQing Noodle Soup',&lt;br /&gt;
         description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
   },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Chengdu-Style Bing',&lt;br /&gt;
         description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
         price: '$8.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
         name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
         description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
         price: '$19.99'&lt;br /&gt;
  }];&lt;br /&gt;
  var Entrees = [&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Mapo Tofu',&lt;br /&gt;
        description: 'It consists of tofu set in a spicy sauce, typically a thin, oily, and bright red suspension, based on fermented broad bean and chili paste and fermented black beans, along with minced meat, usually pork or beef. Variations exist with other ingredients such as water chestnuts, onions, other vegetables, or wood ear fungus. ', &lt;br /&gt;
        price: '$4.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Chongqing-Style Dry-Fried Chicken With Chilies',&lt;br /&gt;
        description: 'It consists of marinated, deep-fried pieces of chicken stir-fried with Sichuan chilly bean paste, Sichuan peppers, garlic, and ginger. Toasted sesame seeds and sliced spring onions are used to garnish the dish.',&lt;br /&gt;
        price: '$9.99', &lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Sichuan Boiled Fish',&lt;br /&gt;
        description: 'Fresh fish meat is &amp;quot;boiled in water&amp;quot; to cook it, but only after the water has been infused with various aromatics to create a rich and flavorful broth. This combination of dried red chilli peppers, sichuan peppercorns, spicy bean &lt;br /&gt;
paste, scallion, ginger, garlic, cinnamon bark and star anise is potent and does amazing things to our taste buds.', &lt;br /&gt;
        price: '$10.99'&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Dry-fried green beans',&lt;br /&gt;
        description: 'Beans with blistered skins and snappy interiors, and tossed with chili-flavored oil, Sichuan peppercorns, scallions, garlic, ginger, and chopped preserved mustard root.', &lt;br /&gt;
        price: '$8.99',&lt;br /&gt;
  },&lt;br /&gt;
        {&lt;br /&gt;
        name: 'Grilled Asparagus',&lt;br /&gt;
        description: 'Burned asparagus with white milky soup, crispy and refreshing.', &lt;br /&gt;
        price: '$19.99'&lt;br /&gt;
  },];&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2428</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2428"/>
		<updated>2017-12-12T04:35:52Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts. &lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var PRODUCTS = [&lt;br /&gt;
        {name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
          description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
          price: '$9.99'},&lt;br /&gt;
        {name: 'Dandan Noodle',&lt;br /&gt;
          description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
          price: '$10.99'},&lt;br /&gt;
        {name: 'ChongQing Noodle Soup',&lt;br /&gt;
          description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
          price: '$19.99' },&lt;br /&gt;
        {name: 'Chengdu-Style Bing',&lt;br /&gt;
          description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
          price: '$8.99'},&lt;br /&gt;
        {name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
          description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
          price: '$19.99'}&lt;br /&gt;
   ];&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
	<entry>
		<id>http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2427</id>
		<title>React</title>
		<link rel="alternate" type="text/html" href="http://classes.engineering.wustl.edu/cse330/index.php?title=React&amp;diff=2427"/>
		<updated>2017-12-12T04:34:32Z</updated>

		<summary type="html">&lt;p&gt;Yiming: /* Creating the Site */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;ReactJS is a JavaScript library for building user interface. React allows developers to create large web-applications that use data that can change over time, without reloading the page. It aims primarily to provide speed, simplicity and scalability. React processes only user interfaces in applications. This corresponds to View in the Model-View-Controller(MVC) pattern, and can be used in combination with other JavaScript libraries or frameworks in MVC, such as AngularJS. Several notable features of ReactJS are one-way data flow, JSX, component-based.&lt;br /&gt;
&lt;br /&gt;
== Tutorial ==&lt;br /&gt;
[https://reactjs.org/docs/installation.html ReactJS docs]: Before starting on the assignment, please complete the ''quick start'' tutorial step by step. The advanced guides and the tutorial are helpful and to master ReactJS you will need to learn these. However, for this module, you are not required to do these parts. &lt;br /&gt;
&lt;br /&gt;
== Individual Assignment ==&lt;br /&gt;
In this assignment, you will build a ReactJS restaurant website. To learn ReactJS, please view and complete this [https://reactjs.org/docs/installation.html quick start] tutorial and read [[Route|the introduction of route]] carefully. &lt;br /&gt;
After creation, your app should look like this:&lt;br /&gt;
  my-app/&lt;br /&gt;
    README.md&lt;br /&gt;
    node_modules/&lt;br /&gt;
    package.json&lt;br /&gt;
    public/&lt;br /&gt;
      index.html&lt;br /&gt;
      favicon.ico&lt;br /&gt;
    src/&lt;br /&gt;
      App.css&lt;br /&gt;
      App.js&lt;br /&gt;
      App.test.js&lt;br /&gt;
      index.css&lt;br /&gt;
      index.js&lt;br /&gt;
      logo.svg&lt;br /&gt;
Let's take a look into the app you have created. package.json is the file that holds various metadata that is relevant to your app. This file is used to give information to npm that allows it to identify the project as well as handle the dependencies to your app. For more information, see the Node.JS guide: [[Node.JS#Node.js Conventions]]. &lt;br /&gt;
&lt;br /&gt;
For your app to work, you '''cannot''' delete or rename these files: &lt;br /&gt;
*public/index.html&lt;br /&gt;
*src/index.js&lt;br /&gt;
Building a React website is similar to playing with LEGOs. public/index.html is analogous to the base LEGO piece, and all the other components you build will be placed in this single div: &amp;lt;source lang=&amp;quot;html4strict&amp;quot;&amp;gt;&amp;lt;div id=&amp;quot;root&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/source&amp;gt;. You can also include javascript libraries inside the '''&amp;lt;head&amp;gt;''' tag. &lt;br /&gt;
src/index.js the Javascript entry point for your app. What this file does is to render a component called &amp;lt;code&amp;gt;&amp;lt;App&amp;gt;&amp;lt;/code&amp;gt; from App.js in &amp;quot;root&amp;quot; div. You can also render other components.&lt;br /&gt;
&lt;br /&gt;
=== Creating the Site ===&lt;br /&gt;
Now we are making a restaurant website! Your website will need at least four components, &amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;Header&amp;gt;&amp;lt;/code&amp;gt; is your page header, which should include a search bar and a button that can switch between appetizers and entrees pages. &amp;lt;code&amp;gt;&amp;lt;Footer&amp;gt;&amp;lt;/code&amp;gt; is your page footer, it can be anything you like. &amp;lt;code&amp;gt;&amp;lt;Appetizers&amp;gt;&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;&amp;lt;Entrees&amp;gt;&amp;lt;/code&amp;gt; are two pages of your website, each pages will include different food introductions. When you switch between these two pages, you shall not change your page header and footer. Here is what should your page look like:&lt;br /&gt;
&lt;br /&gt;
[[File:Appetizer.png|upright=2|thumb|center|appetizer page]]&lt;br /&gt;
&lt;br /&gt;
Once you click the &amp;quot;Entree&amp;quot; button, it will go to the second page.&lt;br /&gt;
&lt;br /&gt;
[[File:Entree.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
At all time, there should be search bar in your page. It can dynamically displays the search results. For example: &lt;br /&gt;
&lt;br /&gt;
[[File:Search.png|upright=2|thumb|center|entree page]]&lt;br /&gt;
&lt;br /&gt;
We have provided the following data. This will be your &amp;quot;database&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
  var PRODUCTS = [&lt;br /&gt;
        {name: 'Sliced Beef Tripe in Chili Oil With Peanuts',&lt;br /&gt;
         description: 'Served cold or at room temperature, which is made of thinly sliced beef and beef offal.Common ingredients in the modern version include beef heart, tongue and tripe, and a generous amount of various spices, including &lt;br /&gt;
 Sichuan pepper. ', &lt;br /&gt;
         price: '$4.99'},&lt;br /&gt;
        {name: 'Mung Bean Jelly With Numbing-Hot Sauce',&lt;br /&gt;
          description: 'Starch jelly that is usually served cold, with a savory sauce.', &lt;br /&gt;
          price: '$9.99'},&lt;br /&gt;
        {name: 'Dandan Noodle',&lt;br /&gt;
          description: 'It consists of a spicy sauce containing preserved vegetables (often including lower enlarged mustard stems, or upper mustard stems), chili oil, Sichuan pepper, minced pork, and scallions served over noodles.', &lt;br /&gt;
          price: '$10.99'},&lt;br /&gt;
        {name: 'ChongQing Noodle Soup',&lt;br /&gt;
          description: 'a bowl of hot noodles served in a thin but flavorful broth flavored with Sichuan pepper and chili oil, topped with sesame seeds and a bit of steamed cabbage.', &lt;br /&gt;
          price: '$19.99' },&lt;br /&gt;
        {name: 'Chengdu-Style Bing',&lt;br /&gt;
          description: 'The bread in these sandwiches is vaguely similar to the more common Xian or Beijing-style bing, but quite a bit crisper, puffier, and frankly, better.',&lt;br /&gt;
          price: '$8.99'},&lt;br /&gt;
        {name: 'Sour and Hot Glass Noodles',&lt;br /&gt;
          description: 'This is almost the sister dish of Chongqing noodles,this used for this snack is thick sweet potato noodles, which is much chewier than common noodles', &lt;br /&gt;
          price: '$19.99'}&lt;br /&gt;
   ];&lt;/div&gt;</summary>
		<author><name>Yiming</name></author>
		
	</entry>
</feed>