https://github.com/kriswep/universal-react
react universal rendering boilerplate, web n' native
https://github.com/kriswep/universal-react
boilerplate monorepo react react-components react-native universal-components universal-react
Last synced: 3 months ago
JSON representation
react universal rendering boilerplate, web n' native
- Host: GitHub
- URL: https://github.com/kriswep/universal-react
- Owner: kriswep
- License: mit
- Created: 2018-06-10T19:31:31.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T19:31:56.000Z (over 7 years ago)
- Last Synced: 2025-02-25T12:02:59.871Z (10 months ago)
- Topics: boilerplate, monorepo, react, react-components, react-native, universal-components, universal-react
- Language: JavaScript
- Size: 1.92 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Universal React Boilerplate
Render reusable components to web (with Create React App) and to mobile (with Create React Native App).
## add package
- create folder in `packages`
- run `yarn init`, set private field
## bootstrap
To install all packages deps and run their prepublish (builds universal comp):
- `yarn lerna bootstrap --scope=srs-universal-components && yarn lerna bootstrap --ignore=srs-universal-components`
## add one project to another
- `yarn lerna add srs-universal-components --scope=native-app`
## run script in all packages
- `yarn lerna run start` or separately in a package folder `yarn start`
## Credits
Inspired by [universal-components-example](https://github.com/samanthabretous/universal-components-example), see the [ReactEurope talk](https://www.youtube.com/watch?v=D1NkyO-J6B0)