jacobrask/CSS1K 412
A demonstration of what can be accomplished with only 1 K of CSS.
Node.js UPnP Media Server
jacobrask/eslint-plugin-sorting 11
ESLint plugin for sorting of various things.
My configuration files.
library agnostic, extensible DOM utility
Various tools to ease cross browser testing.
JavaScript DOM manipulation library
A CSS grid constructor
:tropical_fish: Babel is a compiler for writing next generation JavaScript.
:globe_with_meridians: The Babel documentation website
Pull request review commentSitecore/jss
export const routePatterns = [ // Not needed if not using connected GraphQL. // SitecoreContext: provides component resolution and context services via withSitecoreContext // Router: provides a basic routing setup that will resolve Sitecore item routes and allow for language URL prefixes.-const AppRoot = ({ path, Router, graphQLClient }) => {- const routeRenderFunction = (props) => <RouteHandler route={props} />;- return (- <ApolloProvider client={graphQLClient}>- <SitecoreContext componentFactory={componentFactory} contextFactory={SitecoreContextFactory}>- <Router location={path} context={{}}>- <Switch>- {routePatterns.map((routePattern) => (- <Route key={routePattern} path={routePattern} render={routeRenderFunction} />- ))}- </Switch>- </Router>- </SitecoreContext>- </ApolloProvider>- );-};--export default AppRoot;+class AppRoot extends React.Component {+ state = {+ ssrRenderComplete: false,+ contextFactory: new SitecoreContextFactory()+ }++ setSsrRenderComplete = ssrRenderComplete => {+ this.setState({+ ssrRenderComplete+ })+ }++ render() {+ const { path, Router, graphQLClient, ssrState } = this.props;++ if (ssrState && ssrState.sitecore && ssrState.sitecore.route) {+ // set the initial sitecore context data if we got SSR initial state+ this.state.contextFactory.setSitecoreContext({
The render method should not have side effects, in any applications using React.StrictMode the render method will even be run twice in development mode to dissuade you from side effects in render.
comment created time in a month
startedtc39/proposal-smart-unit-preferences
started time in 2 months