From 5e043adba7ead591959904ade16100c146309396 Mon Sep 17 00:00:00 2001 From: Brian Vaughn Date: Fri, 16 Aug 2019 09:05:21 -0700 Subject: [PATCH] Added Set+Map to dev shell, even though we don't support deep inspecting them yet --- .../InspectableElements.js | 2 ++ .../dev/app/InspectableElements/MapAndSet.js | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 shells/dev/app/InspectableElements/MapAndSet.js diff --git a/shells/dev/app/InspectableElements/InspectableElements.js b/shells/dev/app/InspectableElements/InspectableElements.js index 8917b33037..80aa35f7b4 100644 --- a/shells/dev/app/InspectableElements/InspectableElements.js +++ b/shells/dev/app/InspectableElements/InspectableElements.js @@ -4,6 +4,7 @@ import React, { Fragment } from 'react'; import Contexts from './Contexts'; import CustomHooks from './CustomHooks'; import CustomObject from './CustomObject'; +import MapAndSet from './MapAndSet'; import NestedProps from './NestedProps'; import SimpleValues from './SimpleValues'; @@ -14,6 +15,7 @@ export default function InspectableElements() {

Inspectable elements

+ diff --git a/shells/dev/app/InspectableElements/MapAndSet.js b/shells/dev/app/InspectableElements/MapAndSet.js new file mode 100644 index 0000000000..b81ac8686a --- /dev/null +++ b/shells/dev/app/InspectableElements/MapAndSet.js @@ -0,0 +1,19 @@ +// @flow + +import React from 'react'; + +const set = new Set(); +set.add('abc'); +set.add(123); + +const map = new Map(); +map.set('name', 'Brian'); +map.set('food', 'sushi'); + +export default function MapAndSet() { + return ; +} + +function ChildComponent(props: any) { + return null; +}