Skip to content
Snippets Groups Projects
Select Git revision
  • 0ca2a3512995a33ce94faa69511ae47be5512bfe
  • master default protected
2 results

test_api_permissions.py

Blame
  • Forked from Jean-Marie Place / SCODOC_R6A06
    Source project has a limited visibility.
    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>
          );
       }
    }