Similar to text nodes in HTML, JSXText nodes that have surrounding whitespace can be trimmed in most scenarios. This makes the compilation output cleaner and allows us to flatten children arrays if only a single child remained after dropping unnecessary nodes.
Similar to text nodes in HTML, JSXText nodes that have surrounding whitespace can be trimmed in most scenarios. This makes the compilation output cleaner and allows us to flatten children arrays if only a single child remained after dropping unnecessary nodes.
Before:
After