Skip to content

Commit a668e8c

Browse files
committed
docs: move sensors to gitbook
1 parent 498b01e commit a668e8c

19 files changed

+21
-3
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/en/SUMMARY.md

+18
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,21 @@
1717
* [Counter](Counter.md)
1818
* [List](List.md)
1919
* [Map](Map.md)
20+
* [Sensors](Sensors.md)
21+
* [BatterySensor](BatterySensor.md)
22+
* [GeoLocationSensor](GeoLocationSensor.md)
23+
* [HoverSensor](HoverSensor.md)
24+
* [MediaDeviceSensor](MediaDeviceSensor.md)
25+
* [MediaSensor](MediaSensor.md)
26+
* [MotionSensor](MotionSensor.md)
27+
* [MouseSensor](MouseSensor.md)
28+
* [NetworkSensor](NetworkSensor.md)
29+
* [LightSensor](LightSensor.md)
30+
* [LocationSensor](LocationSensor.md)
31+
* [OrientationSensor](OrientationSensor.md)
32+
* [ScrollSensor](ScrollSensor.md)
33+
* [SizeSensor](SizeSensor.md)
34+
* [WidthSensor](WidthSensor.md)
35+
* [ViewportSensor](ViewportSensor.md)
36+
* [WindowScrollSensor](WindowScrollSensor.md)
37+
* [WindowSizeSensor](WindowSizeSensor.md)
File renamed without changes.

docs/Sensors.md docs/en/Sensors.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ Sensors are render pros that track some behavior and re-render on state change.
55
For example, the below `<div>` will be re-rendered every time mouse position changes.
66

77
```jsx
8-
<MouseSensor>{({posX, posY}) =>
9-
<div />
10-
}</MouseSensor>
8+
<MouseSensor>
9+
{({posX, posY}) => <div />}
10+
</MouseSensor>
1111
```
1212

1313
`libreact` comes with plenty of sensors built-in.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)