UNPKG

react-simple-json-viewer

Version:

A basic lightweight React component for viewing data in an expandable way.

19 lines (16 loc) 321 B
import React from "react"; import Type from "./type"; const ArrayType = (props) => { const { value } = props; console.log(value); return ( <ul> {value.map((v, i) => ( <li key={i}> <Type value={v} /> </li> ))} </ul> ); }; export default ArrayType;