mirror of
https://github.com/zhigang1992/react-native-web.git
synced 2026-04-22 19:58:25 +08:00
Rearrange the benchmark code so that each implementation is self-contained. Adds the SierpinskiTriangle case that 'emotion' introduced in their fork of the 'react-native-web' benchmarks. And make it possible to run benchmarks on a per-library basis.
14 lines
338 B
JavaScript
14 lines
338 B
JavaScript
/* eslint-disable react/prop-types */
|
|
import classnames from 'classnames';
|
|
import React from 'react';
|
|
import styles from './view-styles.css';
|
|
|
|
class View extends React.Component {
|
|
render() {
|
|
const props = this.props;
|
|
return <div {...props} className={classnames(styles.initial, props.className)} />;
|
|
}
|
|
}
|
|
|
|
export default View;
|