Formatting updates.
This commit is contained in:
@@ -134,7 +134,7 @@ complete picture of the entire process. The more black-boxes we have
|
|||||||
in our mental model the harder it will be for us to diagnose
|
in our mental model the harder it will be for us to diagnose
|
||||||
performance problems.
|
performance problems.
|
||||||
|
|
||||||
* Markup in JavaScript: ~JSX~
|
* Markup in JavaScript: JSX
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:EXPORT_FILE_NAME: manuscript/markup-in-javascript---jsx-.markua
|
:EXPORT_FILE_NAME: manuscript/markup-in-javascript---jsx-.markua
|
||||||
:END:
|
:END:
|
||||||
@@ -257,7 +257,7 @@ by leaving those aspects of the JSX compiler out.
|
|||||||
So now that we've worked through JSX we're ready to tackle
|
So now that we've worked through JSX we're ready to tackle
|
||||||
~createElement~, the next item on our way to building our own React.
|
~createElement~, the next item on our way to building our own React.
|
||||||
|
|
||||||
* Getting Ready to Render with ~createElement~
|
* Getting Ready to Render with createElement
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:EXPORT_FILE_NAME: manuscript/getting-ready-to-render-with--createelement-.markua
|
:EXPORT_FILE_NAME: manuscript/getting-ready-to-render-with--createelement-.markua
|
||||||
:END:
|
:END:
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Getting Ready to Render with `createElement`
|
# Getting Ready to Render with createElement
|
||||||
|
|
||||||
React's `render` expects to consume a tree of element objects in a specific, uniform format. `createElement` is the method by which we achieve that objective. `createElement` will take as input JSM and output a tree of objects compatible with `render`.
|
React's `render` expects to consume a tree of element objects in a specific, uniform format. `createElement` is the method by which we achieve that objective. `createElement` will take as input JSM and output a tree of objects compatible with `render`.
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# Markup in JavaScript: `JSX`
|
# Markup in JavaScript: JSX
|
||||||
|
|
||||||
`createElement`, however, takes as input something that is probably not familiar to us since we usually work in JSX, which is the last element of the chain in this puzzle and the first step in solving it. While not strictly a part of React, it is almost universally used with it. And if we understand it then `createElement` will be less of a mystery since we will be able to connect all the dots.
|
`createElement`, however, takes as input something that is probably not familiar to us since we usually work in JSX, which is the last element of the chain in this puzzle and the first step in solving it. While not strictly a part of React, it is almost universally used with it. And if we understand it then `createElement` will be less of a mystery since we will be able to connect all the dots.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user