Skip to content

Commit 650a228

Browse files
- add go.mod
- update readme
1 parent 2e8fb07 commit 650a228

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ Facebook's React is one of the most dominant libraries for front-end development
55

66
This package is an extremely thin wrapper over the native react.js API. The objective was to make it light-weight, developer-friendly and intuitive. You shouldn’t have to scour the documentation to get going — a few peeks should be adequate. If you know your way around the React API and you know a bit of Go, then you should be able to make prototypes and production-worthy applications in no time.
77

8-
The package is **production ready** but it should be noted that the `elements` sub-package is not stable yet. Once stability is reached, version `1.0.0` will be tagged. The `elements` sub-package is optional but highly convenient.
9-
It is recommended your package manager locks to a commit id instead of the master branch directly.
8+
The package is **production ready**. An optional (but highly convenient) `elements` sub-package is also included.
109

1110
See [Tutorial here](https://medium.com/@rocketlaunchr.cloud/go-with-react-de5ee4f01df9).
1211

@@ -29,7 +28,7 @@ The examples can be [found here](https://github.com/rocketlaunchr/react/tree/mas
2928

3029
* How to create React class components
3130
* How to pass props from parent to child
32-
* How to use **HydrateProps()** and **HydrateState()**
31+
* How to use **UnmarshalProps()** and **UnmarshalState()**
3332
* How to use **state()** and **setState()**
3433
* How to create strongly-typed structured props and states
3534

@@ -41,19 +40,17 @@ The examples can be [found here](https://github.com/rocketlaunchr/react/tree/mas
4140

4241
## Performance Tips
4342

44-
* Use `-m` command line flag to instruct gopher.js to minify code. Then minify further with [Webpack/UglifyJS](https://github.com/gopherjs/gopherjs/issues/136). A Webpack tutorial can be [found here](https://medium.com/ag-grid/webpack-tutorial-understanding-how-it-works-f73dfa164f01).
43+
* Use `-m` command line flag to instruct gopher.js to minify code. Then bundle+minify further with [Rollup.js](https://rollupjs.org) xor [Webpack/UglifyJS](https://github.com/gopherjs/gopherjs/issues/136). A Webpack tutorial can be [found here](https://medium.com/ag-grid/webpack-tutorial-understanding-how-it-works-f73dfa164f01).
4544
* Apply [gzip compression](https://en.wikipedia.org/wiki/HTTP_compression)
4645
* Use int instead of (u)int8/16/32/64
4746
* Use float64 instead of float32
48-
* Try to avoid importing `fmt` package (either directly or indirectly).
47+
* Avoid importing `fmt` at all costs (including indirectly).
4948
* Use **react.JSFn()** and use native javascript functions as much as possible.
5049
* https://github.com/gopherjs/gopherjs/wiki/JavaScript-Tips-and-Gotchas
5150
* See if [jsgo](https://github.com/dave/jsgo) is appropriate for your web-based project.
5251

5352
## Future Work
5453

55-
* Fork [mapstructure](https://github.com/mitchellh/mapstructure) and remove dependecy for `fmt` and `net` (short term)
56-
* Remove dependency for [mapstructure](https://github.com/mitchellh/mapstructure) (long term)
5754
* WebAssembly version
5855

5956
#

go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module github.com/rocketlaunchr/react
2+
3+
go 1.10

0 commit comments

Comments
 (0)