• Sign in

web / steffers.org · Files

Dogs2 white

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Forks
  • Snippets
  • Network
  • steffers.org
  • react
  • src
  • Common
  • Text.js
  • first go version
      c796f10f
    Georg Hopp authored
    2017-11-10 18:40:43 +0100  
    Browse Files »
Text.js 322 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
import React, { Component } from 'react';
import './Text.css';

class Text extends Component {
  render() {
    return (
      <div className="text">
        { this.props.headline && <h3>{this.props.headline}</h3> }
        {this.props.children}
      </div>
      );
  }
}

export default Text;
// vim: set ts=2 sw=2 et: