From 9fc79cf03445d57497e6d2f97ad702797995fb45 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Wed, 1 Jul 2020 09:19:33 -0400 Subject: [PATCH] Added pragmaFrag so terse Fragment syntax,<>, can be used in Preact. (#9051) --- .../article-form/components/ArticleCoverImage.jsx | 6 +++--- babel.config.js | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/javascript/article-form/components/ArticleCoverImage.jsx b/app/javascript/article-form/components/ArticleCoverImage.jsx index 8caa0db7b..46419a67c 100644 --- a/app/javascript/article-form/components/ArticleCoverImage.jsx +++ b/app/javascript/article-form/components/ArticleCoverImage.jsx @@ -1,4 +1,4 @@ -import { h, Component, Fragment } from 'preact'; +import { h, Component } from 'preact'; import PropTypes from 'prop-types'; import { generateMainImage } from '../actions'; import { validateFileInputs } from '../../packs/validateFileInputs'; @@ -75,7 +75,7 @@ export class ArticleCoverImage extends Component { Uploading... ) : ( - + <>