How to get props in React

Props
By Jad Joubran · 
Last updated Jan 25, 2020
import React from "react";

function App(props) {
  console.log(props.theme);
  console.log(props.className);

  return <div>App</div>;
}
// Example
<App theme="dark" className="container" />
"dark"
"container"