-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsidebars.js
48 lines (48 loc) · 1.36 KB
/
sidebars.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
module.exports = {
someSidebar: {
'React Patterns': [
'home',
'proxy-component',
'make-the-api-call-in-componentdidmount',
'stateless-function',
'higher-order-function',
'higher-order-component',
'accessing-a-child-component',
'jsx-spread-attributes',
'render-callback',
'function-as-child-component',
'function-as-prop-component',
'component-injection',
{
'Conditional rendering': [
'if-else',
'ternary-operation',
'logical-and-operator',
'switch-case-operator',
'conditional-rendering-with-enum',
'multi-level-conditional-rendering',
'with-higher-order-component',
'external-templating-component',
],
},
{
'Destructuring': [
'destructuring',
'destructuring-function-argument',
'nested-destructuring',
'destructuring-rest-or-spread-operator',
],
},
'promises-over-callbacks',
'container-component',
'state-hoisting',
'pure-component-avoid-heavy-re-render',
],
'React Anti-patterns': [
'props-in-initial-state-is-an-anti-pattern',
'shouldcomponentupdate-avoid-heavy-re-render',
'indexes-as-a-key-is-an-anti-pattern',
'spreading-props-on-dom-elements-is-an-anti-pattern',
],
},
};