MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / generateReact

Function generateReact

scripts/generate.js:27–48  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

25}
26
27function 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 */
36import PropTypes from 'lib/PropTypes';
37import React from 'react';
38import styles from 'components/${name}/${name}.scss';
39
40let ${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
50function generateExample(name) {
51 return (

Callers 1

generate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected