# react/jsx-one-expression-per-line
📝 Require one JSX element per line.
🔧 This rule is automatically fixable by the [`--fix` CLI option](https://eslint.org/docs/latest/user-guide/command-line-interface#--fix).
This option limits every line in JSX to one expression each.
Note: The fixer will insert line breaks between any expression that are on the same line.
## Rule Details
Examples of **incorrect** code for this rule:
```jsx
World
{ 'World' }
{ this.world() }
{ 'Hello' }{ ' ' }{ 'World' }
```
Examples of **correct** code for this rule:
```jsx
World
{ 'World' }
{ this.world() }
{ 'Hello' }
{ ' ' }
{ 'World' }
```
## Rule Options
```js
...
"react/jsx-one-expression-per-line": [, { "allow": "none"|"literal"|"single-child" }]
...
```
### `allow`
Defaults to `none`.
Examples of **correct** code for this rule, when configured as `"literal"`:
```jsx
Hello
```
Examples of **correct** code for this rule, when configured as `"single-child"`:
```jsx
Hello
{"Hello"}
```
Examples of **correct** code for this rule, when configured as `"non-jsx"`:
```jsx
Hello {someVariable}
Hello {} there!
```