1.1.0 • Published 4 years ago

gatsbypropshandler v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

This is a simple way to fake props in gatsby. It allows you to add key:value pairs to a file that is able to be refrenced anywhere in your code. the format looks like this:

// now works with arrays! ... just put an array into the prop field and it will destructure and the the objects in the array for you.... if it is not an array of objects it will fail gracefully

// import the props from gatsbypropshandler import { props } from 'gatsbypropshandler'

// add a prop in the form of an object .... and only an object, nothing else works at present.... it should fail gracefully though props({ hello: 'world' })

// refrencing the prop anywhere is a similiar format... but pass in just the key value as a string props('hello') // returns 'world'

1.1.0

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago