Commit Graph

56 Commits

Author SHA1 Message Date
Brian Vaughn
bd06bbc1a7 Added context HOC example to reference 2018-03-24 09:30:27 -07:00
Brian Vaughn
f11a149412 Added DevTools naming consideration to React.forwardRef reference doc example 2018-03-24 08:58:20 -07:00
Brian Vaughn
587ad93751 Merge pull request #5 from alexkrolick/16.3-release-blog-post
Context updates
2018-03-23 14:09:36 -07:00
Alex Krolick
8437e3767b Fix syntax 2018-03-23 13:55:35 -07:00
Alex Krolick
b0e860404b Prettier 2018-03-23 13:54:55 -07:00
Alex Krolick
349446d8a7 Add caveats section 2018-03-23 13:51:07 -07:00
Alex Krolick
920b4f4741 Replace divs with some fake components 2018-03-23 13:20:54 -07:00
Brian Vaughn
7ac0712ed8 Updated 16.3 blog post to account for getSnapshotBeforeUpdate lifecycle 2018-03-23 12:42:57 -07:00
Alex Krolick
69198013e1 Use functional component 2018-03-23 11:46:47 -07:00
Alex Krolick
fb8e9e8a1b kill class props 2018-03-23 11:43:41 -07:00
Alex Krolick
f9225e2562 Remove propTypes 2018-03-23 11:41:07 -07:00
Alex Krolick
3c44882d68 Use function keyword 2018-03-23 11:39:12 -07:00
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