Giter VIP home page Giter VIP logo

Comments (7)

myitcv avatar myitcv commented on May 30, 2024

i am amazed at how far you have taken this. Really impressive and useful.

Thanks @joeblew99

the install client side is big

Things definitely aren't fully optimised as yet. Looking at the most minimal example, http://blog.myitcv.io/gopherjs_examples_sites/helloworld/. Total size is 774K. Of that, 152K is minfied React code. Using Preact is smaller still at 49K. I've got something in the TODO list tracking optimising this further. Nothing as advanced as PRPL / lazy load (yet).

Themes. Yes i know its lame, but well was wondering... Material Design maybe ?

You're totally free to do whatever you like as far as styling etc is concerned. reactGen -init (minimal|bootstrap) is really only to get you started... no constraints.

Equally, if you'd like to contribute a different template, let me know. The -init mode of reactGen is very very hacky for now... so could do with a bit of tidy up before contributions in that space.

from react.

joeblew99 avatar joeblew99 commented on May 30, 2024

from react.

myitcv avatar myitcv commented on May 30, 2024

Sounds interesting @joeblew99!

Anything you want to track by keeping this issue open, given that I'll issues from my TODO?

Thanks

from react.

joeblew99 avatar joeblew99 commented on May 30, 2024

lets close this
I will have a look at your todo list, and do some more tire kicking..

from react.

myitcv avatar myitcv commented on May 30, 2024

👍

from react.

myitcv avatar myitcv commented on May 30, 2024

Also @joeblew99 just in case you've not seen, the Links of the wiki which has examples, creating your first app guide, talks links etc.

Might be of some help - feedback much appreciated too.

from react.

joeblew99 avatar joeblew99 commented on May 30, 2024

@myitcv thansk mate. Yeah i was getting a bit lost in terms of how to reuse existing React components out there.

For intance, the code below is from the GRPCWeb example.
You usng bootstrap and then rendering direct creating your own DOm elements as you go.
I am trying to work out if i can use a well known existing lib like Material-UI.
For example their button...
https://github.com/callemall/material-ui/blob/v1-beta/src/Button/Button.js

// Render renders the GetBook component
func (g GetBookDef) Render() r.Element {
st := g.State()
content := []r.Element{
r.P(nil, r.S("Search for book by ISBN (for example, 140008381).")),
r.Form(&r.FormProps{ClassName: "form-inline"},
r.Div(
&r.DivProps{ClassName: "form-group"},
r.Label(&r.LabelProps{ClassName: "sr-only", For: "isnbText"}, r.S("ISBN")),
r.Input(&r.InputProps{
Type: "number",
ClassName: "form-control",
ID: "isnbText",
Value: st.isbnInput,
OnChange: isbnInputChange{g},
}),
r.Button(&r.ButtonProps{
Type: "submit",
ClassName: "btn btn-default",
OnClick: triggerGet{g},
}, r.S("Get Book")),
),
),
}

if st.book != nil {
	content = append(content, renderBook(st.book))
}

if st.err != "" {
	content = append(content,
		r.Div(nil,
			r.Hr(nil),
			r.S("Error: "+st.err),
		),
	)
}

return r.Div(nil, content...)

}

from react.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.