You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* api experiment
* more reason-react-like api experiment
* Add Compat module; fix stateless; build docs
* Split the spec component type from ReactComponent; fix toReactComponent
* Fix statelessComponent
* Update types, distinguish initialState from state until make is called
* Fix shouldUpdate ffi
* Restore package-lock.json
* Formatting
* Provide self-bound event handling functions
* Clean up capture/monitor
* A few more performance-related tweaks
* Move displayName functions to FFI
* More performance tweaks
* Still more perf :)
* Remove Compat module (moved to legacy example)
* Capture forall bug
* Refactor Self, plus more FFI perf improvements
* Reorganize for docs
* Add docs
* Make it more difficult to run into the incompatible props bug
* Use Union instead of Record update
* Fix displayNameFromSelf
* Export Compat module
* Remove unused state in counter example
* Docs
* selectorRef
* Doc updates
Here is an example component which renders a label read from props along with a counter:
24
+
See [the documentation](https://pursuit.purescript.org/packages/purescript-react-basic/docs/React.Basic) for a detailed overview, or take a look at one of the examples:
v4 includes a new (but deprecated) module, `React.Basic.Compat`. It matches most of the old API and types (except `setStateThen` and `isFirstMount`) to make upgrading easier and more gradual. You can find `^import\sReact\.Basic\b` and replace with `import React.Basic.Compat`, upgrade the package version, and proceed from there one component at a time (or only new components). See the documentation link above for more info on the v4 API.
0 commit comments