mirror of
https://gitea.gofwd.group/dstrawsb/ballistic-builder.git
synced 2025-12-06 02:36:44 -05:00
working now, layout.tsx has issues
This commit is contained in:
25
src/Example Code/BasicClassComponent/index.js
Normal file
25
src/Example Code/BasicClassComponent/index.js
Normal file
@@ -0,0 +1,25 @@
|
||||
import React, { Component } from 'react'
|
||||
import PropTypes from 'prop-types' //ES6
|
||||
import styles from './styles.module.css'
|
||||
|
||||
export default class BasicClassComponent extends Component {
|
||||
constructor(props){
|
||||
super(props)
|
||||
this.state = {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
render(){
|
||||
return (
|
||||
<div >
|
||||
<h1>Basic Component</h1>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
BasicClassComponent.propTypes = {
|
||||
|
||||
};
|
||||
|
||||
23
src/Example Code/BasicClassComponent/package.json
Normal file
23
src/Example Code/BasicClassComponent/package.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"name": "basicclasscomponent",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"main": "./index",
|
||||
"author": {
|
||||
"name": "Don Strawsburg",
|
||||
"email": "don@goforward.group",
|
||||
"url": "https://goforward.group/"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Don Strawsburg",
|
||||
"email": "don@goforward.group",
|
||||
"url": "https://goforward.group/"
|
||||
},
|
||||
{
|
||||
"name": "Sean Strawsburg",
|
||||
"email": "sean@goforward.group",
|
||||
"url": "https://goforward.group/"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user