You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Text.js 484B

12345678910111213141516171819
  1. import React, { Component } from 'react';
  2. /**
  3. * Implements a React/Web {@link Component} for displaying text similar to React
  4. * Native's {@code Text} in order to faciliate cross-platform source code.
  5. *
  6. * @extends Component
  7. */
  8. export default class Text extends Component {
  9. /**
  10. * Implements React's {@link Component#render()}.
  11. *
  12. * @inheritdoc
  13. * @returns {ReactElement}
  14. */
  15. render() {
  16. return React.createElement('span', this.props);
  17. }
  18. }