Skip to content

Instantly share code, notes, and snippets.

Avatar

Lorenzo Palmes lpalmes

View GitHub Profile
@lpalmes
lpalmes / react.md
Last active Sep 10, 2020
React and Reconcilers in Reason
View react.md

React

This is the base of all projects and it will include the foundation for all potential react-based projects in Reason.

This base package should include a ReasonReact api to promote collaboration and familiarity with people using a ReasonReact, and for the modern world of React this should also include a Hooks api that currently revery uses.

React module

All blocks in Jsx are of type React.reactElement. This reactElement should represent:

@lpalmes
lpalmes / jsxstyle.re
Created Dec 20, 2017
bs-jsxstyle bindings
View jsxstyle.re
module Box = {
[@bs.module "jsxstyle"] external box : ReasonReact.reactClass = "Box";
let make =
(
~azimuth: option(string)=?,
~background: option(string)=?,
~backgroundAttachment: option(string)=?,
~backgroundColor: option(string)=?,
~backgroundImage: option(string)=?,
~backgroundPosition: option(string)=?,
@lpalmes
lpalmes / App.js
Last active Nov 14, 2017
React Relay pseudo bindings
View App.js
import { graphql } from 'react-relay'
const query = graphql`
query AppQuery(id: ID!) {
user(id: $id) {
id
name
}
}`
View server_middleware.go
package main
import (
"log"
"net/http"
"time"
)
func main() {
http.Handle("/", logging(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
View keybase.md

Keybase proof

I hereby claim:

  • I am lpalmes on github.
  • I am lpalmes (https://keybase.io/lpalmes) on keybase.
  • I have a public key ASD2U8rqfXd9T06RiiON79AaafKLPmTzdBBLxBfnhG7J2wo

To claim this, I am signing this object:

You can’t perform that action at this time.