Skip to content
Snippets Groups Projects
Select Git revision
  • b8782e8175b9e75078e56153cd3e059fb69575fa
  • main default protected
2 results

DepthCamModule.cpp

Blame
  • personListing_class.jsx 543 B
    import React from 'react';
    
    import Person from './person_class.jsx';
    
    /*
    * props.persons is an Array of length 2 containing "person objects"
    * props.children corresponds to children given to element when using it
    */
    export default class PersonListing extends React.Component {
       constructor(props) {
          super(props);
       }
    
       render() {
          return (
             <div>
                <Person { ...this.props.persons[0] } />
                <Person { ...this.props.persons[1] } />
                { this.props.children }
             </div>
          );
       }
    }