frintjs/frint

frint-react: Empty Component when Region is empty

Open

#216 opened on 2017年6月2日

GitHub で見る
 (3 comments) (1 reaction) (0 assignees)JavaScript (37 forks)batch import
featuregood first issuehelp wantedminor

Repository metrics

Stars
 (746 stars)
PR merge metrics
 (30d に merged PR はありません)

説明

Current situation

Right now, when a Region has no Apps to render, it just remains empty.

It would be useful if we can pass some default Component to render in those cases.

Proposed API

import EmptyRegionContent from '../components/EmptyRegionContent';

<Region name="sidebar" empty={EmptyRegionContent} />

If the sidebar region is empty, it would render EmptyRegionContent component by default.

コントリビューターガイド