-
create-react-native-app purescript-app; cd purescript-app
-
pulp init --force
-
pulp build
-
src/Main.js
var React = require("react");
var RN = require("react-native");
exports.text = function(props){
function serializeForm(form, urlEncode = false) { | |
const formData = new FormData(form); | |
if (urlEncode) { | |
const searchParams = new URLSearchParams(formData) | |
return searchParams.toString(); | |
} | |
const serializedFormData = {}; |
module StringContext = | |
Context.MakePair({ | |
type t = string; | |
let defaultValue = "Awesome"; | |
}); | |
let component = ReasonReact.statelessComponent("Tree"); | |
let make = _children => { |
f(events) -> state | |
match f(state, event) -> state | |
f(state, command) -> events |
import { multiSortBy } from 'src/shared/utils' | |
export type PathNode<T> = { | |
id: string | |
path: string | |
parentId: string | |
meta: T | |
children?: PathNode<T>[] | |
} |
// NOTE: you will NOT write code like this when using suspense | |
// instead, you'll use react-cache (not yet officially published) | |
// it'll handle things like pre-loading, handling rapid re-renders, etc. | |
const cache = {} | |
function FetchPokemon({pokemonName}) { | |
const pokemon = cache[pokemonName] | |
if (!pokemon) { | |
const promise = fetchPokemon(pokemonName).then( |
create-react-native-app purescript-app; cd purescript-app
pulp init --force
pulp build
src/Main.js
var React = require("react");
var RN = require("react-native");
exports.text = function(props){
import React from 'react'; | |
/** | |
* Counter.js | |
* | |
* exposes: | |
* init | |
* update | |
* view | |
*/ |
When it comes to databases and AWS VPC, best practice is to place your database in private subnet. By definition, private subnet in AWS is not reachable from the Internet because no Internet gateway is attached to private subnet. This is the way you protect your data. This kind of configuration is good for security but bad for data management.
How can you easily access and manage your secured data?
There are two basic ways to acees it.
import React from "react"; | |
import { graphql } from "react-relay"; | |
import createPageContainer from "../relay/createPageContainer"; | |
import PostLayout from "../components/PostLayout"; | |
import Header from "../components/Header"; | |
import Shell from "../layouts/Shell"; |
{-# LANGUAGE TypeFamilies #-} | |
import Data.Function (on) | |
import Control.Applicative | |
data EventData e = EventData { | |
eventId :: Int, | |
body :: Event e | |
} |