biofriction-wp-theme/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/HelloWorld.jsx

15 lines
293 B
React
Raw Normal View History

2021-10-26 14:18:09 +02:00
import React, { Component } from 'react';
export default class HelloWorld extends Component {
render() {
// Play with it...
const name = 'World';
return (
<h2 className="hello-world">
<span className="hello-world__i">Hello, {name}</span>
</h2>
);
}
}