1.0.15 • Published 2 years ago

react-redux-geogebra v1.0.15

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-redux-geogebra

Hi Everyone. Welcome to my second published package for react.js. I'm going to show you an easy way to embed GeoGebra Maths App to your React project. This is not an official GeoGebra-project.

Made with create-react-library

NPM

NPM JavaScript Style Guide

Demo

Try the demo: https://saunaaa.github.io/react-redux-geogebra

Install

npm install --save react-redux-geogebra

or

yarn add react-redux-geogebra

Usage

GeoGebra Component

import React from 'react'

import { ReactGeoGebra } from 'react-redux-geogebra'

const App = () => {
  return (
    <ReactGeoGebra
      width='800'
      height='600'
      showMenuBar
      showToolBar
      showAlgebraInput
    />
  )
}

Provider

To use the provided hooks wrap the component in the ReactGeoGebraProvider Component

import { ReactGeoGebraProvider } from 'react-redux-geogebra'

ReactDOM.render(
  <ReactGeoGebraProvider>
    <App />
  </ReactGeoGebraProvider>,
  document.getElementById('root')
)

Hooks

import {
  useStoreState,
  useStoreActions,
  useTypedSelector,
  useDispatch
} from 'react-redux-geogebra'

Props and Parameters

Default Props

ReactGeoGebra.defaultProps = {
  appName: 'classic',
  width: 800,
  height: 600,
  showToolBar: true,
  showAlgebraInput: true,
  showMenuBar: true
}

GeoGebra Props

A list of the GeoGebra props is available at the GeoGebra-website.

GeoGebra App API

To interact with the embedded GeoGebra app you can use the GeoGebra-API.

License

Check out the GeoGebra license agreement on their webpage. https://www.geogebra.org/license

MIT © saunAAA

Support Me?

just buy me a coffee ☕️

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago