open-index/open-npm huggingface dataset:
npm package: @pkxp/react
Description: React is a JavaScript library for building user interfaces.
Latest version: 0.0.7

# `react`

React is a JavaScript library for creating user interfaces.

The `react` package contains only the functionality necessary to define React components. It is typically used together with a React renderer like `react-dom` for the web, or `react-native` for the native environments.

**Note:** by default, React will be in development mode. The development version includes extra warnings about common mistakes, whereas the production version includes extra performance optimizations and strips all error messages. Don't forget to use the [production build](https://reactjs.org/docs/optimizing-performance.html#use-the-production-build) when deploying your application.

## Usage

```js
import { useState } from 'react';
import { createRoot } from 'react-dom/client';

function Counter() {
  const [count, setCount] = useState(0);
  return (
    <>
      <h1>{count}</h1>
      <button onClick={() => setCount(count + 1)}>
        Increment
      </button>
    </>
  );
}

const root = createRoot(document.getElementById('root'));
root.render(<Counter />);
```

## Documentation

See https://react.dev/

## API

See https://react.dev/reference/react
npm package: @pkxp/react-dom
Description: React package for working with the DOM.
Latest version: 0.1.1

# `react-dom`

This package serves as the entry point to the DOM and server renderers for React. It is intended to be paired with the generic React package, which is shipped as `react` to npm.

## Installation

```sh
npm install react react-dom
```

## Usage

### In the browser

```js
import { createRoot } from 'react-dom/client';

function App() {
  return <div>Hello World</div>;
}

const root = createRoot(document.getElementById('root'));
root.render(<App />);
```

### On the server

```js
import { renderToPipeableStream } from 'react-dom/server';

function App() {
  return <div>Hello World</div>;
}

function handleRequest(res) {
  // ... in your server handler ...
  const stream = renderToPipeableStream(<App />, {
    onShellReady() {
      res.statusCode = 200;
      res.setHeader('Content-type', 'text/html');
      stream.pipe(res);
    },
    // ...
  });
}
```

## API

### `react-dom`

See https://react.dev/reference/react-dom

### `react-dom/client`

See https://react.dev/reference/react-dom/client

### `react-dom/server`

See https://react.dev/reference/react-dom/server
npm package: @pkxp/react-scheduler
Description: Cooperative scheduler for the browser environment.
Latest version: 0.0.7

# `scheduler`

This is a package for cooperative scheduling in a browser environment. It is currently used internally by React, but we plan to make it more generic.

The public API for this package is not yet finalized.

### Thanks

The React team thanks [Anton Podviaznikov](https://podviaznikov.com/) for donating the `scheduler` package name.
npm package: @pkxp/solparse-exp-jb
Description: PEG.js Solidity parser for Javascript, experimental work (jb) to support latest solidity features and work with vscode solidity, this should NOT be merged with the main repo as it includes support for incomplete statements
Latest version: 3.1.1

# Solparse Exp

Pegjs-based Parser for the Solidity Programming language.

This is a fork of [duaraghav8 Solparse](https://github.com/duaraghav8/solparse) which was a fork of the original [Consensys' solidity-parser](https://github.com/ConsenSys/solidity-parser) by Tim Coulter. @cgewecke, @duaraghav8 and @federicobond are co-authors.

## Note
This version was created primarily to work with https://github.com/juanfranblanco/vscode-solidity, and added IncompleteBlock to help on not completed statements, but over the years as it has continued to be updated remains as the only solidity parser that uses PEG.

If you are not interested in "IncompleteBlock" it can be removed or commented out for your own needs. Or 2 parsers can be included in the package, raise an issue if this is your requirement.

Fixes welcome :)

### License

MIT