mirror of https://github.com/status-im/reagent.git
e6b1e9794c
We already support the static contextTypes and childContextTypes from the legacy context API. React has now added contextType to the new Context API to make it easier to consume the context value. https://reactjs.org/docs/context.html#classcontexttype https://reactjs.org/blog/2018/10/23/react-v-16-6.html |
||
---|---|---|
.. | ||
FAQ | ||
examples | ||
0.8-upgrade.md | ||
BatchingAndTiming.md | ||
ControlledInputs.md | ||
CreatingReagentComponents.md | ||
InteropWithReact.md | ||
ManagingState.md | ||
README.md | ||
ReactFeatures.md | ||
UsingHiccupToDescribeHTML.md | ||
UsingSquareBracketsInsteadOfParens.md | ||
WhenDoComponentsUpdate.md | ||
cljdoc.edn | ||
development.md |
README.md
Tutorials
- Using Hiccup to Describe HTML
- Creating Reagent Components
- Using [square brackets] instead of (parentheses)
- When do components update?
- [WIP] Managing State: atoms, cursors, Reactions, and tracking
- Batching and Timing: How Reagent Renders Changes to Application State
- Interop with React
- React Features and how to use them in Reagent
Also:
- purelyfunctional.tv - an excellent, written tutorial
- Reagent Deep Dive Series by Timothy Pratley - a four part series
- Reagent Mysteries series by Paulus Esterhazy - a four part series
- Props, Children & Component Lifecycle by Martin Klepsch
- Using Stateful JS Components - like D3 (external link)
Commercial Videos Series
- Learn Reagent Free
- Learn Reagent Pro (Affiliate link, $30 discount)
- Learn Re-frame (Affiliate link, early access)
- purelyfunctional.tv
- Lambda Island Videos
Frequently Asked Questions
- Why isn't my Component re-rendering?
- How do I use React's "refs"
- How can I use an entity like "nbsp"?
- Why is my attribute (like autoFocus) missing?
- How can I use React's dangerouslySetInnerHTML?
- Reagent doesn't work after updating dependencies
- How do I force Component re-creation? (external link)
- How do I access "props" in lifecycle methods? (external link)
Examples
- MaterialUI v1 with working TextField, React interop example
- React-sortable-hoc, React interop example
Want To Add An FAQ?
Many Thanks!! We'd like that:
- As a base, just use the structure from one of the existing FAQs files
- Give us a PR which includes your new file AND a change to this README so your entry is listed.