This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Component 1 | |
const fragment1 = graphql` | |
fragment Component1fragment1 on User { | |
id | |
} | |
`; | |
function Component1({ user }: { user: Component1fragment1$key }) { | |
const data = useFragment(fragment1, user); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This may not be the most ideal way, but it works for me. | |
* | |
* You have to use one of their data routers in order to support loaders. https://reactrouter.com/en/main/routers/picking-a-router | |
* | |
* Then you can use loaders https://reactrouter.com/en/main/route/loader | |
* | |
* I played around with it for a while and eventually came up with something like this. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
.header-block { | |
display: block; | |
padding: 1em; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Name: Example CPT registration in a Thesis 2 Box | |
Author: Matthew Horne - Zerogravityskins.com | |
Description: enter your description here. | |
Version: 1.0 | |
Class: my_custom_class | |
*/ | |
class my_custom_class extends thesis_box { |