React.js Cheat Sheet
Reactjs

React.js Cheat Sheet

Components

Functional component
import React from "react";
 
export default function UserProfile() {
  return (
    <div className="UserProfile">
      <div>Hello</div>
      <div>World</div>
    </div>
  );
}