| 25 | } |
| 26 | |
| 27 | function generateReact(name) { |
| 28 | return ( |
| 29 | `/* |
| 30 | * Copyright (c) 2016-present, Parse, LLC |
| 31 | * All rights reserved. |
| 32 | * |
| 33 | * This source code is licensed under the license found in the LICENSE file in |
| 34 | * the root directory of this source tree. |
| 35 | */ |
| 36 | import PropTypes from 'lib/PropTypes'; |
| 37 | import React from 'react'; |
| 38 | import styles from 'components/${name}/${name}.scss'; |
| 39 | |
| 40 | let ${name} = ({prop1}) => { |
| 41 | return <div />; |
| 42 | } |
| 43 | |
| 44 | ${name}.propTypes = { |
| 45 | prop1: PropTypes.string.isRequired.describe('Replace me with the actual props'), |
| 46 | } |
| 47 | `); |
| 48 | } |
| 49 | |
| 50 | function generateExample(name) { |
| 51 | return ( |