https://github.com/ranjancse26/reactnodefacebooksharing
React and Node.js based Facebook Sharing App
https://github.com/ranjancse26/reactnodefacebooksharing
expressjs facebook nodejs reactjs webpack
Last synced: 3 months ago
JSON representation
React and Node.js based Facebook Sharing App
- Host: GitHub
- URL: https://github.com/ranjancse26/reactnodefacebooksharing
- Owner: ranjancse26
- License: apache-2.0
- Created: 2017-02-05T03:48:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-16T03:13:33.000Z (over 9 years ago)
- Last Synced: 2025-01-10T16:24:02.262Z (over 1 year ago)
- Topics: expressjs, facebook, nodejs, reactjs, webpack
- Language: JavaScript
- Size: 462 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Facebook Sharing -
> Collection of React based Components for Facebook Sharing
## Getting Started
```shell
git clone https://github.com/ranjancse26/ReactNodeFacebookSharing.git && cd ReactNodeFacebookSharing
```
## Development
First do an npm update and then
```shell
npm start
```
- navigate to [localhost:8080](http://localhost:8080)
## How to use
### Basic
```js
import FacebookLogin from '../src/facebookLogin';
import FacebookShare from '../src/facebookShare';
import FacebookPrivateMessage from '../src/facebookPrivateMessage'
import InvitationEditor from '../src/invitationEditor'
class Base extends Component {
render() {
var editorDefaultValue =
"Dear ---------,\n\nYou're an amazing person --------- and even more\nimpressive engineer and innovator.\n\nYou are so good at ---------,\n\nSo join me on Collaborizm!\n\nSincerely,\nSteve";
return (
);
}
}
const responseFacebook = (response) => {
console.log(response);
};
ReactDOM.render(
,
document.getElementById('demo')
);
```
Custom element example:
```js
import FacebookLogin from '../src/facebookLogin';
import FacebookShare from '../src/facebookShare';
import FacebookPrivateMessage from '../src/facebookPrivateMessage'
import InvitationEditor from '../src/invitationEditor'
```
## Reused code
Note - The Facebook React Login component is reused from
https://github.com/keppelen/react-facebook-login