react/prop-types doesn't work with fragment syntax #1694
Closed
Description
Example:
import React from "react";
const ForAttendees = ({ page }) => (
<>
<section className="intro intro_attendees">{page}</section>
<div className="grid--5col">barfoo</div>
</>
);
export default ForAttendees;
react/prop-types
does not capture this. If you replace the fragment syntax with divs, it detects the case.