Skip to content

Conversation

php-coder
Copy link

No description provided.

<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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant