Skip to content

Instantly share code, notes, and snippets.

@bobdobbs
bobdobbs / list.js
Created January 25, 2022 03:34
passing in props to function components within .map
let billionaires = [
{ name : 'Bill Gates', email : '[email protected]' },
{ name : 'Jeff Bezos', email : '[email protected]' },
{name : 'Mark Zuckerberg', email : '[email protected]'}
]
function List(i) {
return(
<ul>
<VirtualHost *:80>
DocumentRoot /var/www/mysitelocaldev
Servername rateyourlandlord.localdev
<Directory /var/www/mysite.localdev>
AllowOverride none
FallbackResource /index.php
Require all granted
@bobdobbs
bobdobbs / package.json
Created January 31, 2022 06:23
working simple build
{
"name": "react-fundamentals",
"version": "0.1.0",
"description": "playing with react stuff",
"main": "index.js",
"watch": {
"sass": {
"patterns": [
"./src/sass/"
(set-default '((js-mode (javascript-backend . lsp))) ((js2-mode (javascript-backend . lsp))))
(progn (set-default 'dotspacemacs-distribution 'spacemacs) (set-default 'dotspacemacs-enable-lazy-installation 'unused) (set-default 'dotspacemacs-ask-for-lazy-installation t) (set-default 'dotspacemacs-configuration-layer-path 'nil) (set-default 'dotspacemacs-configuration-layers '(html javascript auto-completion emacs-lisp git helm dap lsp javascript multiple-cursors treemacs)) (set-default '((js-mode (javascript-backend . lsp))) ((js2-mode (javascript-backend . lsp)))) (set-default 'dotspacemacs-additional-packages 'nil) (set-default 'dotspacemacs-frozen-packages 'nil) (set-default 'dotspacemacs-excluded-packages 'nil) (set-default 'dotspacemacs-install-packages 'used-only))
(closure (t) nil "Layer configuration:\nThis function should only mod..." (progn (set-default 'dotspacemacs-distribution 'spacemacs) (set-default 'dotspacemacs-enable-lazy-installation 'unused) (set-default 'dotspacemacs-ask-for-lazy-insta
;; -*- mode: emacs-lisp; lexical-binding: t -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Layer configuration:
This function should only modify configuration layer settings."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
;; `+distribution'. For now available distributions are `spacemacs-base'
{
"name": "react tut",
"version": "0.0.1",
"description": "Steps towards a more sufficient build pipeline",
"main": "index.js",
"watch": {
"sass": {
"patterns": [
"./src/sass"
],
// File: /packages/my-first-theme/src/components/index.js
// ...
import Post from "./post"
const Root = ({ state }) => {
const data = state.source.get(state.router.link)
return (
<>