mirror of
https://github.com/zhigang1992/Recoil.git
synced 2026-01-12 22:51:35 +08:00
70 lines
1.9 KiB
JavaScript
70 lines
1.9 KiB
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
*/
|
|
|
|
module.exports = {
|
|
someSidebar: {
|
|
Introduction: [
|
|
'introduction/motivation',
|
|
'introduction/core-concepts',
|
|
'introduction/installation',
|
|
'introduction/getting-started',
|
|
],
|
|
'Basic Tutorial': [
|
|
'basic-tutorial/intro',
|
|
'basic-tutorial/atoms',
|
|
'basic-tutorial/selectors',
|
|
'basic-tutorial/components',
|
|
'basic-tutorial/example',
|
|
'basic-tutorial/bonus',
|
|
],
|
|
Guides: [
|
|
{
|
|
'Migrating to Recoil': [
|
|
'guides/migrating/from-react-state',
|
|
'guides/migrating/from-redux',
|
|
'guides/migrating/from-mobx',
|
|
],
|
|
},
|
|
'guides/usage-flow',
|
|
'guides/usage-typescript',
|
|
'guides/writing-test',
|
|
'guides/code-splitting',
|
|
],
|
|
'API Reference': [
|
|
{
|
|
Core: [
|
|
'api-reference/core/atom',
|
|
'api-reference/core/DefaultValue',
|
|
'api-reference/core/isRecoilValue',
|
|
'api-reference/core/RecoilRoot',
|
|
'api-reference/core/selector',
|
|
'api-reference/core/useRecoilCallback',
|
|
'api-reference/core/useRecoilValue',
|
|
'api-reference/core/useRecoilValueLoadable',
|
|
'api-reference/core/useResetRecoilState',
|
|
'api-reference/core/useSetRecoilState',
|
|
],
|
|
},
|
|
{
|
|
Utils: [
|
|
'api-reference/utils/atomFamily',
|
|
'api-reference/utils/constSelector',
|
|
'api-reference/utils/errorSelector',
|
|
'api-reference/utils/noWait',
|
|
'api-reference/utils/readOnlySelector',
|
|
'api-reference/utils/selectorFamily',
|
|
'api-reference/utils/waitForAll',
|
|
'api-reference/utils/waitForAny',
|
|
'api-reference/utils/waitForNone',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
};
|