Uploaded image for project: 'Nuxeo Mobile'
  1. Nuxeo Mobile
  2. NXMOB-91

Refactor all existing components to use props

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Mobile 1.0.0
    • Component/s: None

      Description

      Currently, we use constructor args to set component property but we should use "props".

      Define the "propTypes" object in each component to define properties accepted by the component.

      http://wecodetheweb.com/2015/06/02/why-react-proptypes-are-important/
      https://facebook.github.io/react/docs/reusable-components.html

        Attachments

          Activity

            People

            • Assignee:
              troger Thomas Roger
              Reporter:
              troger Thomas Roger
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: