-
Notifications
You must be signed in to change notification settings - Fork 0
FormBasic
Radi Cho edited this page Jan 17, 2018
·
3 revisions
RSGFormBasic
is deprecated in version3.0.0
FormBasic by default looks like this:
You can use basic login form with the following code:
import React from 'react';
import ReactDOM from 'react-dom';
import { RSGFormBasic } from 'rsg-components';
var app = document.getElementById('app');
ReactDOM.render(
<div>
<RSGFormBasic></RSGFormBasic>
</div>,
app
);
With RSGFormBasic
you can send the information to the server side of your web application
<RSGFormBasic action={'test'}></RSGFormBasic>
This method is insecure and outdated, that's why we deprecated it.
If you want to use rsg-components
(and any other thing related to React, for that matter) at it's best, I recommend you read more React docs:
And understand it's architecture and history better.
- https://en.wikipedia.org/wiki/React_(JavaScript_library)
- https://github.com/acdlite/react-fiber-architecture (For understanding React Fiber's (aka React 16+) internals)
npm install rsg-components --save
or
yarn add rsg-components