showing results for - "difference between react functioncomponent and react component"
Veronica
31 Jan 2018
1import React, { Component } from "react";
2
3class ClassComponent extends Component {
4 render() {
5   return <h1>Hello, world</h1>;
6 }
7}
8
Ella
03 Aug 2017
1import React from "react";
2
3class ClassComponent extends React.Component {
4 render() {
5   return <h1>Hello, world</h1>;
6 }
7}
8
Emely
01 Apr 2020
1import React from "react";
2 
3const FunctionalComponent = () => {
4 return <h1>Hello, world</h1>;
5};
6