GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - purescript-react/purescript-react-basic: An opinionated set of bindings to the React library, optimizing for the most basic use cases

BranchesTags
Open more actions menu

Latest commit

 

History

190 Commits
190 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
src/React
src/React
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.prettierrc
.prettierrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
spago.lock
spago.lock
 
 
spago.yaml
spago.yaml
 
 

Repository files navigation

purescript-react-basic

Build Status

There's a brief section on getting started below. For a more complete guide, check out the React Basic docs! (work in progress) (sorry, not sure when the docs will be done but here's a "real world" example app which is a great starting point! jonasbuntinx/purescript-react-realworld -- I also recommend the PureScript Discourse forum for specific questions, and am usually fairly responsive to blocking issues here on GitHub, including the repositories below. Finally, check out the purescript-cookbook repo for small examples of specific use cases, like TextFieldsReactHooks.)

Getting Started

This library contains the core types and tools used by the rest of the React Basic ecosystem. To use React Basic in your applications you'll also need to choose one or more implementations as well as a target environment!

Note: The Hooks and Classic implementations can both be used in the same project

Implementations:

  • react-basic-hooks
    • PureScript types for building components using React hooks, as well as creating custom hooks.
  • react-basic-classic (this implementation was previously included in the React.Basic module)
    • PureScript types for the more traditional class-based React API. Very similar to the Reason-React API.

Environments:

  • react-basic-dom
  • react-basic-native

For example, to use the react-basic hooks implementation for web development in a spago app:

npm i -S react react-dom
spago install react-basic react-basic-dom react-basic-hooks

Or using bower:

npm i -S react react-dom
bower i -S purescript-react-basic purescript-react-basic-dom purescript-react-basic-hooks

Upgrading from React Basic v14

The React.Basic.DOM modules have been moved to react-basic-dom. This doesn't require any code changes, but you will need to add this dependency to your projects.

The component implementation previously in React.Basic has been extracted to react-basic-classic, which now provides the React.Basic.Classic module. Just install that library and find/replace ^import\sReact\.Basic\s with import React.Basic.Classic.

If you were using the React.Basic.Compat module, that module has been moved to react-basic-compat.

If you were using react-basic-hooks exclusively everything should work as-is.

Where did the examples folder go?

Because this library no longer contains a specific implementation and the example structure contained a fair bit of boilerplate, they've been moved to the react-basic-classic repository, in the examples folder. In addtion, a consolidated documentation site (linked above) is being worked on.

About

An opinionated set of bindings to the React library, optimizing for the most basic use cases

pursuit.purescript.org/packages/purescript-react-basic

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

287 stars

Watchers

19 watching

Forks

38 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.