Skip to content

Instantly share code, notes, and snippets.

import React, { useState } from "react";
function DebAp() {
const [inputList, setInputList] = useState([{ fName: "", ltName: "" , hobbys:[] }]);
const handleInputChange = (e, index) => {
const { name, value } = e.target;
const list = [...inputList];
switch(name) {
case 'fName':
@web2feel
web2feel / wp-query-ref.php
Last active September 2, 2015 11:32 — forked from luetkemj/wp-query-ref.php
WP: Query $args
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
$args = array(