Skip to content

propTypes not transformed to vue #14

Open
@armano2

Description

https://goo.gl/Wq1fxi

example:

import React from 'react';

class Display extends React.Component {
  render() {
    return (
      <div className="component-display">
        <div>
          {this.props.value}
        </div>
      </div>
    );
  }
}
Display.propTypes = {
  value: React.PropTypes.string,
};
export default Display;

propTypes can be used to make 2 thinks in react:

  1. events in vue
  2. props in vue

we can determine this based on value of property if its React.PropTypes.func than this is an $emit

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions