Skip to content

Commit

Permalink
docs(formula): add formula docs
Browse files Browse the repository at this point in the history
  • Loading branch information
nampdn committed Jan 6, 2020
1 parent d470c76 commit f82cbb2
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
20 changes: 20 additions & 0 deletions docs/formula/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
id: installation
title: Installation
---

```
yarn add -E @barajs/formula
```

# What is a Bara formula?

Formula is the standalone and independence library that would boost up your functional programming speed.

Each formula is a curry function which is designed to fit with Bara application.

As each function is a pure function, you can easily extends or build a new one.

## Future plan

In the future we will distribute every function as a stand-alone package to reduces the size of your application bundle.
15 changes: 15 additions & 0 deletions docs/formula/object.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
id: object-formula
title: Object Formula
---

# lensProp

Get a value of an object's property in unlimited nested.

Inspri

```
import {lensProp} from "@barajs/formula"
7 changes: 6 additions & 1 deletion sidebars.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,13 @@
"api",
{
"type": "subcategory",
"label": "Core Package",
"label": "Core",
"ids": ["core/installation", "core/app"]
},
{
"type": "subcategory",
"label": "Formula",
"ids": ["formula/installation", "formula/object"]
}
],
"Examples": ["doc3"]
Expand Down

1 comment on commit f82cbb2

@vercel
Copy link

@vercel vercel bot commented on f82cbb2 Jan 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.