Commit Graph

10 Commits

Author SHA1 Message Date
Chanyeon Kim
e8cdf5128a Fix button => themed-buton (#752) 2018-04-01 14:10:34 +01:00
Pat
e61d594b64 Minor: context/theme-detailed-app.js broken (#746)
* Minor: context/theme-detailed-app.js broken

Today I tested out the new Context API using using [CRA](https://github.com/facebook/create-react-app). 
I encountered a runtime exception, so this tiny PR is intended to make it easier for future Context API learners.

`ReferenceError: Must call super constructor in derived class before accessing 'this' or returning from derived constructor`

create-react-app@next commit da518d2238298dd5db74e9c63c12251099f87bb0

* Update theme-detailed-app.js
2018-03-30 22:07:34 +01:00
Alex Krolick
b0e860404b Prettier 2018-03-23 13:54:55 -07:00
Alex Krolick
920b4f4741 Replace divs with some fake components 2018-03-23 13:20:54 -07:00
Alex Krolick
fb8e9e8a1b kill class props 2018-03-23 11:43:41 -07:00
Alex Krolick
3c44882d68 Use function keyword 2018-03-23 11:39:12 -07:00
Alex Krolick
6eb29a18f5 Combine basic examples 2018-03-22 22:22:36 -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
Alex Krolick
566406e717 Add docs for new Context API (R16.3) 2018-03-06 01:07:14 -08:00