React
React since has been making noise recently,
Do not know well Reactjs tutorial tried a little doing the.
Do not know well Reactjs tutorial tried a little doing the.
The React
Google and mizchi's blog entry of come out.
I like using a technique called VirtualDOM.
There are also artifacts that were cut only VirutalDOM.
https://github.com/Matt-Esch/virtual-dom
Story you read the code of virtual-dom and want to know Virtual DOM algorithms
Story you read the code of virtual-dom and want to know Virtual DOM algorithms
Installation of the react-tools
React, it seems to go get in the XHR for type = "text / jsx" content.
Often developed in Chrome, or Developer to put tool that,
I wonder if the good that'll stand something in development server, and I thought
It easier likely to compile in js the JSX.
Often developed in Chrome, or Developer to put tool that,
I wonder if the good that'll stand something in development server, and I thought
It easier likely to compile in js the JSX.
There seems to be intended to pre-compile the JSX.
It is kind of one by one come out in console.log.
It is kind of one by one come out in console.log.
Command-line tool is installed that jsx.
jsx command
What it was written in jsx compiled as java script.
File written in jsx format in the src directory,
The compiled file in javascript format is to be discharged to the dest directory.
File written in jsx format in the src directory,
The compiled file in javascript format is to be discharged to the dest directory.
The rudiments
As rudimentary, it was in such a form.
id = "content">
- main.js are as follows.
- Rendering the results.
It is of the contents to expand the contents of the CommentBox (instance of React),
It's DOM is built.
It's DOM is built.
Let's go underway this remains.
In CommentList, we are using the Comment.
Definition of Comment is made as follows.
Definition of Comment is made as follows.
In CommentList, but are building a Comment,
author Attribute and This is one comment, etc.
Do so that pull in this.props.author and this.props.children.
author Attribute and This is one comment, etc.
Do so that pull in this.props.author and this.props.children.
props of this.props is abbreviation of properties in, seems to use if you want to call wrapped in Component (enclosing a) the contents of the Component.
To use the data expressed in JSON format in the Component
It can also be used data of JSON format within Component.
Utilizing Showdown.js, the section which is in the form to do the parsing of Markdown format , but there is,
There was worrisome.
Utilizing Showdown.js, the section which is in the form to do the parsing of Markdown format , but there is,
There was worrisome.
id = "content">
The contents of the data Object deployed in CommentBox Component,
It was found to render.
It was found to render.
To communicate with the server side, to save the comment
To save the contents of the data to comments.json file
And proceed with more Tutorial
Become what you want to add a comment to comments.son.
Because it must deliver comments.json on the server side,
We decided to bring on hand from the react-tutorial repository git clone a set of server and sample files.
Become what you want to add a comment to comments.son.
Because it must deliver comments.json on the server side,
We decided to bring on hand from the react-tutorial repository git clone a set of server and sample files.
Continue to add Your name and Say something ...
It has been updated.
There, that's server.py in the react-tutorial,
Since the update to the _comments.json file is not included, the little bit remodeling
There, that's server.py in the react-tutorial,
Since the update to the _comments.json file is not included, the little bit remodeling
File is try to form that is stored in the _comments.json.
After you open the page, repeat the save,
To stop the server, and restart.
The _comments.json, what you type is stored
The _comments.json, what you type is stored
Concepts and the JSX, use of React.js, have somehow found.
0 件のコメント:
コメントを投稿