Skip to content

Instantly share code, notes, and snippets.

View dainelmawer's full-sized avatar
🏠
Working from home

Daine Mawer dainelmawer

🏠
Working from home
View GitHub Profile
import React, {Component} from 'react';
class Test extends Component {
constructor(props) {
super(props);
this.state = {
posts: {}
}
}
import React from 'react';
import React, { Fragment } from 'react';
import ParentComponent from './ParentComponent';
import ChildComponent from './ChildComponent';
import SiblingComponent from './SiblingComponent';
const MyComponent = () => {
return(
<Fragment>
<ParentComponent>
<ChildComponent />
import React, { Component } from 'react';
import ModalWindow from './ModalWindow';
class Modal extends Component {
constructor() {
super();
this.state = {
isOpen: false,
}
import React, { Component ) from 'react';
class Form extends Component {
constructor() {
super();
this.handleSubmit = this.handleSubmit.bind(this);
}
handleSubmit() {
alert('Form submission');
import React, { Component } from 'react';
import Input from './input';
import Button from './button';
import TextArea from './textarea';
const Form = () => (
<form>
<Input type="text" placeholder="Name" />
<Input type="email" placeholder="Email" />
<Input type="number" placeholder="Mobile" />
import React from 'react';
const Widget = (props) => {
return(
<div className="widget>
<h1>{props.title}</h1>
</div>
);
}
// package.json
{
"name": "dictionary",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
function zone_clean_header() {
  
  remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
  remove_action( 'wp_head', 'wp_generator' );
  remove_action( 'wp_head', 'wlwmanifest_link' );
  remove_action( 'wp_head', 'rsd_link' );
  remove_action( 'wp_head', 'wp_shortlink_wp_head' );
  remove_action( 'wp_head', 'feed_links', 2 );
  remove_action( 'wp_head', 'feed_links_extra', 3 );
  remove_action( 'wp_head', 'rest_output_link_wp_head' );
---
sites:
# The wordpress-default configuration provides a default installation of the
# latest version of WordPress.
wordpress-default:
repo: https://github.com/Varying-Vagrant-Vagrants/vvv-wordpress-default.git
hosts:
- local.wordpress.dev
# The wordpress-develop configuration is useful for contributing to WordPress.