This line looks weird, just an ad-hoc cure when the error of undefined $ occurs with the arrow function operating on the jQuery selector. The cause of error still remains a mystery…
encapsulate behaviors into small units called Components Components are made of elements. Components enable us to break down the entire UI in to smaller reusable pieces. can have private states to control. Only class components can store states.
classMenuextendsComponent { constructor(props) { super(props); // Need to supply this props to the super class } render(){ return( // the view for this component ); } } exportdefaultMenu; //need to import this component for wherever we use
Every parameter pass to the component is under props.
If one component export the default one, there is no need to enclose import component name with braces, otherwise error occurs.
JSX: wrapped React Component expression
Handling events like handling DOM elements
Posted Updated CitruXonve a few seconds read (About 14 words)