Former-commit-id: a7f582489dec8308c131d88464a80720c26b3692
This commit is contained in:
Ben
2022-03-25 15:35:45 +00:00
parent fe7ac49c0b
commit 93686c10e1
13 changed files with 151 additions and 31 deletions

View File

@@ -13,6 +13,7 @@ automatically every request
| GET | /api/search/ | query, page | no | |
| GET | /api/bricks/ | query, page | no | |
| GET | /api/sets/ | query, page | no | |
| GET | /api/sets/featured | page | no | |
| GET | /api/brick/:id/ | | no | |
| GET | /api/set/:id/ | | no | |
| GET | /api/cdn/:id/ | | no | |
@@ -27,6 +28,8 @@ automatically every request
## Query structure
### /api/search/
### /api/bricks/

View File

@@ -25,7 +25,7 @@ class MyComponent extends Component {
That is the simplest form a component can be, it won't render but it
will register it's self in the DOM and be accessable with the
`<mycomponent-component></mycomponent-component>` tag within the DOM.
`<mycomponent></mycomponent>` tag within the DOM.
In order to get some stuff rendering in there, it is important to
override the `Render` method, returning an object with a template
@@ -76,7 +76,7 @@ a given component has a state which can be user-defined `this.state.x=`
or an attribute to the component tag in the HTML, or both. When the
state changes, the component is re-renderered.
State is updated with `SetState()`.
State is updated with `setState()`.
Within the HTML, any instance of `{this.state.}` will be replaced with
the internal state of the component.