Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
hmmhmmhm
/
reactjs.org
Public
forked from
reactjs/react.dev
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Commits
Breadcrumbs
History for
reactjs.org
examples
context
on
main
User selector
All users
All time
Commit history
Commits on Apr 5, 2021
Update reference-caveats-solution.js (#3609)
Show description for 49fd7d5
niklasp
authored
49fd7d5
View commit details
Copy full SHA for 49fd7d5
View code at this point
Browse repository at this point
Commits on Mar 9, 2020
Update motivation-solution.js (#1625)
Show description for d58c947
ruslanpetrov
authored
d58c947
View commit details
Copy full SHA for d58c947
View code at this point
Browse repository at this point
Update reference-caveats-problem.js (#1626)
Show description for 16647b3
ruslanpetrov
authored
16647b3
View commit details
Copy full SHA for 16647b3
View code at this point
Browse repository at this point
Commits on Oct 23, 2018
Document class contextType as the primary consuming mechanism (#1283)
Show description for 896214b
sebmarkbage
authored and
gaearon
committed
896214b
View commit details
Copy full SHA for 896214b
View code at this point
Browse repository at this point
Commits on Jul 27, 2018
Update lifecycles.js (#1098)
Show description for 392d5bf
nateq314
authored and
alexkrolick
committed
392d5bf
View commit details
Copy full SHA for 392d5bf
View code at this point
Browse repository at this point
Commits on Apr 29, 2018
swap example theme colors (#851)
souporserious
authored and
alexkrolick
committed
fc99015
View commit details
Copy full SHA for fc99015
View code at this point
Browse repository at this point
Commits on Apr 18, 2018
Prettier
bvaughn
committed
cad9c0e
View commit details
Copy full SHA for cad9c0e
View code at this point
Browse repository at this point
Add a defaultValue for context example
gaearon
authored
e32847f
View commit details
Copy full SHA for e32847f
View code at this point
Browse repository at this point
Commits on Apr 9, 2018
Remove too much highlighting in a small snippet
gaearon
authored
7ab54e2
View commit details
Copy full SHA for 7ab54e2
View code at this point
Browse repository at this point
Added updating nested context default value example (#780)
Show description for 6521a65
tjallingt
authored and
alexkrolick
committed
6521a65
View commit details
Copy full SHA for 6521a65
View code at this point
Browse repository at this point
Commits on Apr 7, 2018
Added example for updating nested context consumer (#776)
Show description for e4941f6
tjallingt
authored and
alexkrolick
committed
e4941f6
View commit details
Copy full SHA for e4941f6
View code at this point
Browse repository at this point
Commits on Apr 4, 2018
Tweak context docs (#766)
gaearon
authored
f7cf140
View commit details
Copy full SHA for f7cf140
View code at this point
Browse repository at this point
Commits on Apr 1, 2018
Fix button => themed-buton (#752)
Chanyeon Kim
authored and
gaearon
committed
e8cdf51
View commit details
Copy full SHA for e8cdf51
View code at this point
Browse repository at this point
Commits on Mar 30, 2018
Minor: context/theme-detailed-app.js broken (#746)
Show description for e61d594
onpaws
authored and
gaearon
committed
e61d594
View commit details
Copy full SHA for e61d594
View code at this point
Browse repository at this point
Use correct component name in context doc example (#740)
Show description for b1d705a
CMTegner
authored and
gaearon
committed
b1d705a
View commit details
Copy full SHA for b1d705a
View code at this point
Browse repository at this point
Commits on Mar 29, 2018
Revert "Added inline child function caveat to Context docs"
Show description for 3a36a40
bvaughn
committed
3a36a40
View commit details
Copy full SHA for 3a36a40
View code at this point
Browse repository at this point
Revert "Prettier"
Show description for 797a792
bvaughn
committed
797a792
View commit details
Copy full SHA for 797a792
View code at this point
Browse repository at this point
Prettier
bvaughn
committed
032576c
View commit details
Copy full SHA for 032576c
View code at this point
Browse repository at this point
Added inline child function caveat to Context docs
bvaughn
committed
691cd45
View commit details
Copy full SHA for 691cd45
View code at this point
Browse repository at this point
Commits on Mar 24, 2018
Added context HOC example to reference
bvaughn
committed
bd06bbc
View commit details
Copy full SHA for bd06bbc
View code at this point
Browse repository at this point
Commits on Mar 23, 2018
Fix syntax
alexkrolick
committed
8437e37
View commit details
Copy full SHA for 8437e37
View code at this point
Browse repository at this point
Prettier
alexkrolick
committed
b0e8604
View commit details
Copy full SHA for b0e8604
View code at this point
Browse repository at this point
Add caveats section
alexkrolick
committed
349446d
View commit details
Copy full SHA for 349446d
View code at this point
Browse repository at this point
Replace divs with some fake components
alexkrolick
committed
920b4f4
View commit details
Copy full SHA for 920b4f4
View code at this point
Browse repository at this point
Use functional component
alexkrolick
committed
6919801
View commit details
Copy full SHA for 6919801
View code at this point
Browse repository at this point
kill class props
alexkrolick
committed
fb8e9e8
View commit details
Copy full SHA for fb8e9e8
View code at this point
Browse repository at this point
Remove propTypes
alexkrolick
committed
f9225e2
View commit details
Copy full SHA for f9225e2
View code at this point
Browse repository at this point
Use function keyword
alexkrolick
committed
3c44882
View commit details
Copy full SHA for 3c44882
View code at this point
Browse repository at this point
Updated forward-refs example to use class component
bvaughn
committed
b25276a
View commit details
Copy full SHA for b25276a
View code at this point
Browse repository at this point
Updated multi-context example to show more indirection
bvaughn
committed
ef23c49
View commit details
Copy full SHA for ef23c49
View code at this point
Browse repository at this point
Updated context-in-lifecycles example
bvaughn
committed
5864093
View commit details
Copy full SHA for 5864093
View code at this point
Browse repository at this point
Update highlights
alexkrolick
committed
9f54997
View commit details
Copy full SHA for 9f54997
View code at this point
Browse repository at this point
Combine basic examples
alexkrolick
committed
6eb29a1
View commit details
Copy full SHA for 6eb29a1
View code at this point
Browse repository at this point
+ "default value" comment
alexkrolick
committed
7db107b
View commit details
Copy full SHA for 7db107b
View code at this point
Browse repository at this point
Kill highlight
alexkrolick
committed
0d32f18
View commit details
Copy full SHA for 0d32f18
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.