Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion day-02/post.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class HelloWorld extends React.Component {

<div id="demo1"></div>

The `render()` function in the `HelloWorld` component looks like it's returning HTML, but this is actually JSX. The JSX is _translated_ to regular JavaScript at runtime. That component, after translation, looks like this:
The `render()` function in the `HelloWorld` component looks like it's returning HTML, but this is actually JSX. The JSX is _translated_ to regular JavaScript at compile time. That component, after translation, looks like this:
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm... perhaps, it's correct for an example where we use babel in a browser but it might confuse newcomers (and me) because typically transpilation happens in a compile time. WDYT?


```javascript
class HelloWorld extends React.Component {
Expand Down