Alex Krolick
7b5764fed5
Add ref forwarding, lifecycle examples
7 years ago
Alex Krolick
fec6d6c141
Add mutliple contexts example
7 years ago
Alex Krolick
b49f99b7d1
Highlight whole createContext() call
7 years ago
Alex Krolick
7c6688c12c
Highlight createContext()
7 years ago
Alex Krolick
6aa199516d
Add solution to motivation problem
7 years ago
Alex Krolick
de22379cae
Syntax tweaks
7 years ago
Alex Krolick
808e5bddaf
Rephrase and reorganize
- Move Motivation to top @bvaughn
- Copy in some Motivation text from the RFC for the intro para
- Update examples
- Remove state from simple example
- Remove "random color" example;
just toggle a theme variable instead
- Update highlights
7 years ago
Brian Vaughn
f14f1477d5
Renamed ref in example
7 years ago
Brian Vaughn
22d0ec128e
Updated forwardRef example to use named function
7 years ago
Brian Vaughn
201fcadfa7
Added React.forwardRef to API and docs
7 years ago
Brian Vaughn
a357b64503
Added React.forwardRef to 16.3 release blog post
7 years ago
Brian Vaughn
866ef01ae6
Prettier
7 years ago
Brian Vaughn
c7a61e6aba
Imported StrictMode docs (and examples) from PR #596
7 years ago
Alex Krolick
566406e717
Add docs for new Context API (R16.3)
7 years ago
Brian Vaughn
c08533af9f
Removed context-before example
7 years ago
Brian Vaughn
8494428bcb
Added example of before/after context API
7 years ago
Brian Vaughn
ab62e88e27
Formatted example
7 years ago
Brian Vaughn
935d2a104b
Minor edits in response to PR feedback
7 years ago
Brian Vaughn
ce57928a0c
Added entry for createRef API
7 years ago
Brian Vaughn
11a780d84c
Update Prettier line-widths for example code
7 years ago
Dan Abramov
3ed5a51eeb
Move the section on file inputs to avoid circular learning dep ( #588 )
7 years ago
Daniel Bird
72e7547ef0
Embed examples using gatsby-remark-embed-snippet
7 years ago
Daniel Bird
cdecba10b3
Move examples of rendering elements from CodePen into ./examples
7 years ago
Vishal Raj
436c43e32e
fixing circleCI post prettier reformatting
7 years ago
Vishal Raj
33aa0f6b4b
gatsby remark embed snippet inclusion
7 years ago
Vishal Raj
dd41d34c20
modification: gatsby-remark-code-plugin
7 years ago
Brian Vaughn
f0f375387e
Changed trailing-commas to es5, moved example config to separate rc file
7 years ago
Brian Vaughn
a03aa6c812
Format examples with Prettier
7 years ago
ajcumine
ee6f7925aa
move reconciliation index as keys examples from codepen into ./examples
7 years ago
Brian Vaughn
32a66d7b83
Migrated remaining Babel REPL links
7 years ago
Brian Vaughn
a3e7c8b7ed
Added gatsby-remark-babel-repl-link plug-in
7 years ago
Brian Vaughn
aa04afb822
Moved Codepen examples from ./codepen to ./examples
7 years ago
Brian Vaughn
6eef46d1cb
Renamed 'examples' folder to 'codepen' for clarity
7 years ago
Brian Vaughn
f14eb61e5f
Removed HTML boilerplate from examples folder to simplify build script
7 years ago
Eric Simons
d255c1afc6
sync js files to codepen
7 years ago