What is JSX Anyways?
Pros of JSX
- it saves you from thinking about the variable names for each DOM node you’re creating. “There are only two hard things in Computer Science: cache invalidation and naming things” — Phil Karlton
- less technical folks can probably understand & modify the code
- JSX compiles to the stuff you would have written anyways.
Cons of JSX
- a build setup with transpiler is required
Use JSX Today — Here’s How
You can download very small example app created by opening your terminal and running these commands on your machine:
git clone https://github.com/cliffordfajardo/blog-examples.git
git checkout examples/simple-jsx