publiclab/plots2

View on GitHub
app/javascript/components/static-props-context.js

Summary

Maintainability
A
0 mins
Test Coverage
import React from "react";

// creates universal access to static props (translation strings, node author & id) (so we don't have to pass them through components)

export const StaticPropsContext = React.createContext(
  {} // default value
);