You get a bonus - 1 coin for daily activity. Now you have 1 coin

What is the recommended way to name components? in REACT

Practice



  1. It is recommended to name the component by reference instead of using

    displayName
    .

    Using

    displayName
    to name a component:
    export default React.createClass({
      displayName: 'TodoApp',
      // ...
    })
    Recommended approach:
    export default class TodoApp extends React.Component {
      // ...
    }

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone