Flashcard (Front and Back)

Front (Question)

React:  function vs class component

Back (Answer)

Function:
const MyComp = () => {
 return (
);}

Class Component:
class MyComp extends Component {
 render() {
    return ();
}



Memory Work Out Sessions use brain research to accelerate and improve memorization. Automatically scheduled daily review drills ensure sure you don't forget.





or Find more than 100,000 other things to learn

Educators and Trainers:

Tour YoYoBrain's resources for learning and teaching
Previous Card See the whole card set Next Card


Comments:

Other flashcards from React.js
React.js: purpose of BabelJS       React.js: how to get React to displa...       React.js: how to mark <script> ...       React.js: basic way of creating compo...       React.js: how to access a property in...       React.js: in JSX, if you want somethi...       React.js: how do you access the child...       React.js: how do you assign a class t...       React.js: how to set style on object ...       React.js: when specifying a vendor pr...       React.js: useEffect       React.js: how to cleanup after a useE...       React.js: npx       React.js: how to test if 'learn testi...       React.js: recommended test library fo...       React: flex will define how your item...       React: controls the direction in whic...       React: possible values for flexDirection       React:  ____ describes how to al...       React:  _____ describes how to a...       React:  ____ property for a sing...       React:  function vs class component       React: in Android and iOS development...       React: Native UI component that is ge...       React: Native UI component that allow...       React: what is the equivalent of web ...       React: how do tag properties get pass...       React: how to add state to a function...       React:  how is state stored in c...       React:  how to add JSX fragments       React:  2 functions in TextInput...       React:  ScrollView can be config...       React:  what to use instead of S...       React:  if you want to render a ...       React:  2 ways to organize code ...       React:  fibers       React:  what to wrap elements in...       React:  using a _____, you can c...       React:  Error boundaries are cre...       React:  SSR       React:  purpose of React.memo() ...       React:  previous way of accompli...       React:  what allows code splitti...       React:  ____ function tells Reac...       React: capitalization of HTML tags in...       React:  when one component conta...       React:  how to update internal s...       React:  how to set default prope...       React:  for function component, ...       React:  the basic premise of con...      





App_store_badge
What's new | About Us | Privacy Policy | Copyright Policy | Contact Us

Copyright 2007-2023 YoYoBrain.com

Managed By W3mg