jsx-eslint/eslint-plugin-react

assert only one dom element is returned from render() per component

Open

#66 ouverte le 16 avr. 2015

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)JavaScript (8 630 stars) (2 797 forks)batch import
acceptedenhancementhelp wantednew rule

Description

when starting with React, i got hit with the issue where i would return multiple elements per component. would be nice if this error shows up at the lint stage as well.

not totally necessary since react would error anyways.

Guide contributeur