Brian Vaughn
c41bb29856
Added DevTools name consideration to forwardRef examples
2018-03-23 09:54:12 -07:00
Brian Vaughn
b25276a80e
Updated forward-refs example to use class component
2018-03-23 09:23:04 -07:00
Brian Vaughn
ef23c49e84
Updated multi-context example to show more indirection
2018-03-23 09:15:25 -07:00
Brian Vaughn
5864093674
Updated context-in-lifecycles example
2018-03-23 09:08:19 -07:00
Brian Vaughn
01c26919b4
Replaced cWRP in forwardRef example with cDU
2018-03-23 07:48:28 -07:00
Alex Krolick
9f5499789a
Update highlights
2018-03-22 22:35:52 -07:00
Alex Krolick
6eb29a18f5
Combine basic examples
2018-03-22 22:22:36 -07:00
Alex Krolick
7db107b2fc
+ "default value" comment
2018-03-22 21:38:34 -07:00
Alex Krolick
0d32f18b09
Kill highlight
2018-03-22 21:18:38 -07:00
Alex Krolick
7b5764fed5
Add ref forwarding, lifecycle examples
2018-03-22 21:15:40 -07:00
Alex Krolick
fec6d6c141
Add mutliple contexts example
2018-03-22 21:01:59 -07:00
Brian Vaughn
dbce488bb7
Merge pull request #3 from alexkrolick/new-context-api
...
New context api
2018-03-21 21:23:02 -07:00
Alex Krolick
b49f99b7d1
Highlight whole createContext() call
2018-03-21 12:16:23 -07:00
Alex Krolick
7c6688c12c
Highlight createContext()
2018-03-21 10:16:38 -07:00
Alex Krolick
6aa199516d
Add solution to motivation problem
2018-03-21 10:04:11 -07:00
Alex Krolick
de22379cae
Syntax tweaks
2018-03-21 09:50:09 -07:00
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
2018-03-21 01:28:01 -07:00
Brian Vaughn
f14f1477d5
Renamed ref in example
2018-03-18 08:03:28 -07:00
Brian Vaughn
22d0ec128e
Updated forwardRef example to use named function
2018-03-16 09:42:47 -07:00
Brian Vaughn
201fcadfa7
Added React.forwardRef to API and docs
2018-03-16 09:30:07 -07:00
Brian Vaughn
a357b64503
Added React.forwardRef to 16.3 release blog post
2018-03-15 09:42:49 -07:00
Brian Vaughn
866ef01ae6
Prettier
2018-03-07 11:44:18 -08:00
Brian Vaughn
c7a61e6aba
Imported StrictMode docs (and examples) from PR #596
2018-03-07 11:33:19 -08:00
Alex Krolick
566406e717
Add docs for new Context API (R16.3)
2018-03-06 01:07:14 -08:00
Brian Vaughn
c08533af9f
Removed context-before example
2018-02-13 12:40:31 -08:00
Brian Vaughn
8494428bcb
Added example of before/after context API
2018-02-13 11:44:39 -08:00
Brian Vaughn
ab62e88e27
Formatted example
2018-02-07 09:25:36 -08:00
Brian Vaughn
935d2a104b
Minor edits in response to PR feedback
2018-02-07 09:24:05 -08:00
Brian Vaughn
ce57928a0c
Added entry for createRef API
2018-02-07 09:24:05 -08:00
Brian Vaughn
11a780d84c
Update Prettier line-widths for example code
2018-02-07 09:20:56 -08:00
Dan Abramov
3ed5a51eeb
Move the section on file inputs to avoid circular learning dep ( #588 )
2018-02-05 18:01:25 +00:00
Brian Vaughn
8448de7ed9
Merge pull request #470 from danielsbird/rendering-elements-codepen
...
Move examples of rendering elements from CodePen into ./examples
2018-01-16 10:15:58 -08:00
Daniel Bird
72e7547ef0
Embed examples using gatsby-remark-embed-snippet
2018-01-13 13:50:24 -05:00
Daniel Bird
cdecba10b3
Move examples of rendering elements from CodePen into ./examples
2017-12-27 20:39:46 -05:00
Vishal Raj
436c43e32e
fixing circleCI post prettier reformatting
2017-12-24 22:11:26 +05:30
Vishal Raj
33aa0f6b4b
gatsby remark embed snippet inclusion
2017-12-22 12:11:29 +05:30
Vishal Raj
093e1128c7
Merge branch 'master' of https://github.com/reactjs/reactjs.org into vishalvrv9-docs-inputfile-improvement
2017-12-21 17:04:14 +05:30
Vishal Raj
dd41d34c20
modification: gatsby-remark-code-plugin
2017-12-21 16:33:32 +05:30
Brian Vaughn
f0f375387e
Changed trailing-commas to es5, moved example config to separate rc file
2017-11-23 08:36:26 -08:00
Brian Vaughn
a03aa6c812
Format examples with Prettier
2017-11-23 08:32:54 -08:00
ajcumine
ee6f7925aa
move reconciliation index as keys examples from codepen into ./examples
2017-11-17 16:27:05 +00:00
Brian Vaughn
32a66d7b83
Migrated remaining Babel REPL links
2017-11-07 12:07:01 +00:00
Brian Vaughn
a3e7c8b7ed
Added gatsby-remark-babel-repl-link plug-in
2017-11-07 11:35:35 +00:00
Brian Vaughn
aa04afb822
Moved Codepen examples from ./codepen to ./examples
2017-11-07 11:03:35 +00:00