Skip to content

Instantly share code, notes, and snippets.

@wilmoore
Last active March 4, 2022 21:37
Show Gist options
  • Save wilmoore/7f189ead9ef5c282c7e639fc7075c845 to your computer and use it in GitHub Desktop.
Save wilmoore/7f189ead9ef5c282c7e639fc7075c845 to your computer and use it in GitHub Desktop.
Income Sources :: Technical Assessments :: React.js :: LinkedIn

Income Sources :: Technical Assessments :: React.js :: LinkedIn

βͺΌ Made with πŸ’œ by realpolyglot.dev

Resources

Topics: Basics, Components, ESNext Syntax, Hooks, Tools

  • 15 multiple choice questions
  • 1.5 minutes per question
  • Score in the top 30% to earn a badge

Practice Assessment

Which class-based component is equivalent to this function component?
const Greeting = ({ name }) => <h1>Hello {name}!</h1>;
  • πŸ‘‡πŸΎ
class Greeting extends React.Component {
  constructor() {
    return <h1>Hello {this.props.name}!</h1>;
  }
}
  • πŸ‘‡πŸΎ
class Greeting extends React.Component {
  render() {
    return <h1>Hello {this.props.name}!</h1>;
  }
}
  • πŸ‘‡πŸΎ
class Greeting extends React.Component {
  render({ name }) {
    return <h1>Hello {name}!</h1>;
  }
}
  • πŸ‘‡πŸΎ
class Greeting extends React.Component {
  <h1>Hello {this.props.name}!</h1>;
}
What is the name of the tool used to take JSX and turn it into createElement calls?
  • JSX Editor
  • ReactDOM
  • Babel
  • Browser Buddy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment